Use with VSCode-graphql
See original GitHub issueI am trying to use https://github.com/prismagraphql/vscode-graphql for Intellisense autocompletion/in-editor queries etc.
When executing a query using the extension, I get the following error:
Error: Network error: When parsing the constructor GraphQLRequest of type Hasura.GraphQL.Transport.HTTP.Protocol.GraphQLRequest expected Object but got Array.
My .graphqlconfig looks like this:
{
"projects": {
"Faberge": {
"schemaPath": "./schema.graphql",
"extensions": {
"endpoints": {
"default": "http://localhost:8080/v1alpha1/graphql"
}
}
}
}
}
Is there something more I need to do in order to get the correct response ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
GraphQL: Language Feature Support
Extension for Visual Studio Code - GraphQL LSP extension that adds autocompletion, validation, go to definition, hover, outline and more.
Read more >Apollo extension for VS Code - Apollo GraphQL Docs
The VS Code extension will show inline performance diagnostics when connected to a service with reported metrics in Apollo Studio. As operations are...
Read more >Setting up Visual Studio Code for client-side GraphQL ...
First of all, you need to install the GraphQL extension from Prisma. Then, create a Hasura server using Heroku or your favorite provider,...
Read more >Guides: Visual Studio Code Setup | Hasura GraphQL Docs
If you use Visual Studio code, the Apollo GraphQL plugin can improve your development experience significantly by enabling a lot of cool features...
Read more >What GraphQL VSCode extension - Reddit
Ideally I simply want intellisense based on a local, static schema.graphql, and both apollo and prisma are built around a strong assumption ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
An integration guide for VSCode is added at https://docs.hasura.io/1.0/graphql/manual/guides/code-editor-integrations/visual-studio-code.html
@Jayphen I know you asked specifically about
stpn.vscode-graphql
, but I useapollographql.vscode-apollo
, and it works like a charm for me. This is myapollo.config.js
file:PS: you don’t need to use Apollo in your project to take advantage of its VS Code extension.