graphql / graphql/graphiql

[vs-code-graphq] Add option to define the path to download the schema

Open
#3,887 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

I am moving from IntelliJ to VS Code and in IntelliJ the official GraphQL extension allows me to download the schema into a file, it shows this button, which downloads the schema to the file that I defined:

![Image](https://github.com/user-attachments/assets/bb09d659-d04a-4d25-bafb-0ef4494b9c2f)

This is my config file:

```yaml
schema: ./lib/app/data/data_sources/schema.graphql
documents: '*/.graphql'
extensions:
endpoints:
Dev:
url: https://mysite.com/server-graphql
```

As you can see I defined the URL where the schema can be fetched from and the file path where it should be downloaded.

This feature is really important to me because I run a code gen tool that will transform the queries and graphql data types into Dart code, and it can only run from a local file.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.