gatsby-source-sanity icon indicating copy to clipboard operation
gatsby-source-sanity copied to clipboard

required fields turn optional

Open timbakkum opened this issue 5 years ago • 0 comments
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', 
      },
    }

timbakkum avatar Jan 13 '20 14:01 timbakkum