gatsby-source-openapi-aggregate icon indicating copy to clipboard operation
gatsby-source-openapi-aggregate copied to clipboard

GraphQLError: Cannot query field "allOpenApiSpec" on type "Query"

Open alioso opened this issue 5 years ago • 3 comments

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.

alioso avatar Mar 05 '19 15:03 alioso

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 avatar Mar 05 '19 19:03 devdigital

@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!

alioso avatar Mar 05 '19 20:03 alioso

FYI i proposed a fix https://github.com/devdigital/gatsby-source-openapi-aggregate/pull/15

oorestisime avatar Apr 02 '19 17:04 oorestisime