graphql / vscode-graphql

MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
MIT License
555 stars 71 forks source link

inside GatsbyJS #51

Closed NickyMeuleman closed 6 years ago

NickyMeuleman commented 6 years ago

Hi! I'm trying to get this VSCode extension working for a Gatsby site. I have the results of the introspectionquery stored in schema.json in the root of the project. Also in the root of the project is a .graphqlconfig.yml that only contains schemaPath: schema.json

Gatsby uses tagged strings for graphQL, but the tag is graphql, not gql like in Apollo. Syntax highlighting does work.

How should I further configure things to also get the autocomplete suggestions/query validation from this plugin?

To reproduce:

Thanks!

edit: Oops, part duplicate of #49.

divyenduz commented 6 years ago

Closing as duplicate of #49