-
Hi,
(and so on) And now I explicitly have to write condition for every field. I know that it's a good thing to ensure all the data is present, but I've already made the required conditions in the WordPress side. I've tried to modify the schema as follows (I don't know if it's the right way to do it)
But that didn't do anything. So how can I customize the schema so that all or some fields are made non nullable. Or is it something that I need to do from WordPress side? I am using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! You'll need to use the |
Beta Was this translation helpful? Give feedback.
Hi!
You'll need to use the
createSchemaCustomization
API, not thecreateResolvers
one: https://www.gatsbyjs.com/docs/schema-customization/#opting-out-of-type-inference