gatsby-source-sanity
gatsby-source-sanity copied to clipboard
required fields turn optional
trafficstars
When I add my sanity project to gatsby using this package, it turns all my required fields optional in the gatsby graphql server. Is this a known bug or is there any additional configuration that I need to add?
It's very unexpected, because the graphql server deployed by sanity does have fields properly marked as required in the schema.
Please feel free to try using the following config in gatsby-config.js
{
resolve: 'gatsby-source-sanity',
options: {
projectId: '8kitcdai',
dataset: 'development',
},
}