GraphQL installs statistics
By Orsen Kucher · VS Code Marketplace · Programming Languages
GraphQL extension for VSCode adds syntax highlighting, validation, and language features like go to definition, hover information and autocompletion for graphql projects. This extension also works with queries annotated with gql tag.
GraphQL has 145,135 recorded installs on VS Code Marketplace, an increase of 0.3% over the past 30 days, ranking #1905 of 2,515 tracked listings.
Rating: 4.43 / 5 from 7 ratings
About GraphQL
VSCode GraphQL
Note: The primary maintainer @acao is on hiatus until December 2020
GraphQL extension VSCode built with the aim to tightly integrate the GraphQL Ecosystem with VSCode for an awesome developer experience.
💡 Note: This extension no longer supports
.prismafiles. If you are using this extension with GraphQL 1, please rename your datamodel fromdatamodel.prismatodatamodel.graphqland this extension will pick that up.
Features
Lots of new improvements happening! We now have a CHANGELOG.md
General features
- Load the extension on detecting
graphql-config fileat root level or in a parent level directory - Load the extension in
.graphql,.gql files - Load the extension on detecting
gqltag in js, ts, jsx, tsx, vue files - Load the extension inside
gql/graphqlfenced code blocks in markdown files - execute query/mutation/subscription operation, embedded or in graphql files
- pre-load schema and document defintitions
- Support
graphql-configfiles with one project and multiple projects - the language service re-starts on changes to vscode settings and/or graphql config!
.graphql, .gql file extension support
- syntax highlighting (type, query, mutation, interface, union, enum, scalar, fragments, directives)
- autocomplete suggestions
- validation against schema
- snippets (interface, type, input, enum, union)
- hover support
- go to definition support (input, enum, type)
- outline support
gql/graphql tagged template literal support for tsx, jsx, ts, js
- syntax highlighting (type, query, mutation, interface, union, enum, scalar, fragments, directives)
- autocomplete suggestions
- validation against schema
- snippets
- hover support
- go to definition for fragments and input types
- outline support
Usage
Install the VSCode GraphQL Extension.
(Watchman is no longer required, you can uninstall it now)
This extension requires a graphql-config file.
As of vscode-graphql@0.3.0 we support graphql-config@3. You can read more about that here. Because it now uses cosmicconfig there are plenty of new options for loading config files:
graphql.config.json
graphql.config.js
graphql.config.yaml
graphql.config.yml
.graphqlrc (YAML or JSON)
.graphqlrc.json
.graphqlrc.yaml
.graphqlrc.yml
.graphqlrc.js
graphql property in package.json
the file needs to be placed at the project root by default, but you can configure paths per project. see the FAQ below for details.
Previous versions of this extension support graphql-config@2 format, which follows legacy configuration patterns
To support language features like "go-to definition" across multiple files, please include documents key in the graphql-config default or /per project (this was include in 2.0).
Configuration Examples
Simple Example
// .graphqlrc.yml
schema: "schema.graphql"
documents: "src/**/*.{graphql,js,ts,jsx,tsx}"
Advanced Example
// graphql.config.js
module.exports = {
projects: {
app: {
schema: ["src/schema.graphql", "directives.graphql"],
documents: ["**/*.{graphql,js,ts,jsx,tsx}", "my/fragments.graphql"],
extensions: {
endpoints: {
default: {
url: "http://localhost:8000",
headers: { Authorization: `Bearer ${process.env.API_TOKEN}` },
},
},
}
},
db: {
schema: "src/generated/db.graphql",
documents: ["src/db/**/*.graphql", "my/fragments.graphql"],
extensions: {
codegen: [
{
generator: "graphql-binding",
language: "typescript",
output: {
binding: "src/generated/db.ts",
},
},
],
endpoints: {
default: {
url: "http://localhost:8080",
headers: { Authorization: `Bearer ${process.env.API_TOKEN}` },
},
},
},
},
},
}
Notice that documents key supports glob pattern and hence ["**/*.graphql"] is also valid.
Frequently Asked Questions
Go to definition is using generated_schema.graphql, not my schema source files
Ah yes, this is now the default behavior used by most users, who do not have source SDL files.
If you're using an "SDL first" methodology, such as with apollo, you'll want to enable useSchemaFileDefinitions.
Add this to your settings:
"vscode-graphql.useSchemaFileDefinitions": true,
you can also use graphql config if you need to mix and match these settings:
projects:
project1:
schema: project1/schema/schema.graphql
documents: project1/queries/**/*.{graphql,tsx,jsx,ts,js}
extensions:
languageService:
useSchemaFileDefinitions: true
project2:
schema: https://api.spacex.land/graphql/
documents: project2/queries.graphql
extensions:
endpoints:
default:
url: https://api.spacex.land/graphql/
The extension fails with errors about duplicate types
Make sure that you aren't including schema files in the documents blob
The extension fails with errors about missing scalars, directives, etc
Make sure that your schema pointers refer to a complete schema!
In JSX and TSX files I see completion items I don't need
The way vscode lets you filter these out is on the user end
So you'll need to add something like this to your global vscode settings:…
Description from the VS Code Marketplace listing.
- graph
- graphql
- lsp
- multi-root ready
- snippet
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Programming Languages plugins
All 20 GraphQL alternativesGraphQL on other marketplaces
Data source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=orsenkucher.vscode-graphql. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.