Important information is missing on the schema-customization page #38243
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: documentation
An issue or pull request for improving or updating Gatsby's documentation
Preliminary Checks
Summary
I am using a strapi plugin with complex types like Image and Dynamic zones. Sometimes a field did not have a value on any type and this would crash gatsby with an error.
The error I got was:
ERROR #85923 GRAPHQL.VALIDATION
There was an error in your GraphQL query:
Cannot query field "image" on type "STRAPI_ARTICLE".
To prevent this I wanted to use typedefs, but did not know how to correctly the types.
Until I stumbled upon actions.printTypeDefinitions.
This makes this process a lot easier when some fields are optional but initially not filled in.
The page I searched was: https://www.gatsbyjs.com/docs/reference/graphql-data-layer/schema-customization/
Steps to Resolve this Issue
The text was updated successfully, but these errors were encountered: