Skip to content

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

@feinstein

Description

@feinstein

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

This is my config file:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions