We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
microCMSのフィールドとして定義しているが、入稿画面で未入力のデータがあるとビルドエラーが起きる場合がある
特定のフィールドがリスト内で全て存在していない場合にエラーが発生する
特定のフィールドが存在していない場合にエラーが発生する
The text was updated successfully, but these errors were encountered:
他のヘッドレスCMSプラグインでも同様の問題が起きている。 gatsbyjs/gatsby#2392
Sorry, something went wrong.
gatsby-node.jsにて下記のようにスキーマのデフォルト定義を行うことで回避ができる。
gatsby-node.js
例:gatsbyobjectAPIにて、title, imageを任意設定にしたい場合
gatsbyobject
title
image
exports.createSchemaCustomization = ({ actions }) => { const { createTypes } = actions const typeDefs = ` type MicrocmsGatsbyobject implements Node { title: String image: Image } type Image { url: String } ` createTypes(typeDefs) }
No branches or pull requests
概要
microCMSのフィールドとして定義しているが、入稿画面で未入力のデータがあるとビルドエラーが起きる場合がある
リスト形式の場合
特定のフィールドがリスト内で全て存在していない場合にエラーが発生する
オブジェクト形式の場合
特定のフィールドが存在していない場合にエラーが発生する
The text was updated successfully, but these errors were encountered: