-
I created the following theme Barcadia (Repo) about 12 months ago, but had a message from someone looking to use it saying they had multiple errors when running It turned out the errors are related to no content being present in Contentful so when it runs the build process, it cannot build the page templates set out in I'm quite unfamiliar with graphql and my knowledge is minimal. I'm not entirely clear on what is required to achieve this using the Gatsby docs But this is what I have so far: Query found in
Types set in
Am I on the right track with this? I appear to be making some progress with types that are not nested, but once dealing with nesting and arguments there seems to be real issues. Also, is this the best way to do this? Basically I am trying to create a theme that will not display errors if the user has not populated the content. Any info or advice would be much appreciated. Morgan |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, you probably need to define your types manually. Also you could use https://www.gatsbyjs.com/plugins/gatsby-plugin-schema-snapshot/ which generates these types for you. This will be fixed with the next big major version. You can follow the development process here: #31385 |
Beta Was this translation helpful? Give feedback.
Yes, you probably need to define your types manually. Also you could use https://www.gatsbyjs.com/plugins/gatsby-plugin-schema-snapshot/ which generates these types for you.
This will be fixed with the next big major version. You can follow the development process here: #31385