gatsby-source-openapi-aggregate
gatsby-source-openapi-aggregate copied to clipboard
GraphQLError: Cannot query field "allOpenApiSpec" on type "Query"
Hi!
using the example that you provided, i get GraphQLError: Cannot query field "allOpenApiSpec" on type "Query"
with gatsby-node.js
. While the graphQL queries work otherwise, gatsby-node.js
seems to trip on the definition when using the createPage method.
Something tells me it has to do with an older version of gastby that this example uses but i wonder if this is something you'd be able to reproduce.
Hi, could you provide the steps for reproduction? I cannot replicate from a clean clone, cd sample
, yarn
, yarn develop
.
Are you using Gatsby 2?
@devdigital I am using 2.0, i think that's the issue here. You probably could reproduce that way.
Not sure i have the expertise required to modify your gatsby-node.js
for 2.0 to make it work, but thx for the quick answer!
FYI i proposed a fix https://github.com/devdigital/gatsby-source-openapi-aggregate/pull/15