Open averysmithproductions opened 1 year ago
In that example, line 25 sets the Gatsby data prefix so you should see it in Gatsby GraphQL Inspector under "Craft_globalSet".
If you see it in GraphQLI, update the Static Query with the name-spaced prefix reference:
const query = useStaticQuery(graphql` query { Craft_globalSet { id } } `);
If you don't see it in GraphQLI there's probably something wrong with your source GraphQL processing and you should check the printed TypeDefs file.
I have used the https://github.com/vladar/gatsby-graphql-toolkit-examples/tree/master/craft-cms example and seem to run into an issue...
in the craft-cms graphiql editor, the following graphql query:
returns this data:
But in gatsby, using the
gatsby-graphql-toolkit
to create the data layer, the same queryresults in the following error:
I have gone through the Troubleshooting instructions and believe that there is an issue with the schema customization logic, which is why I'm filing this issue.
I hope there is someone who can assist! Been trying to resolve this for a couple of weeks.
Using: Gatsby
5.8.0
Gatsby Graphql Source Toolkit2.0.4