Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deal with remote schemas? #106

Open
rankun203 opened this issue Jun 17, 2018 · 1 comment
Open

How to deal with remote schemas? #106

rankun203 opened this issue Jun 17, 2018 · 1 comment

Comments

@rankun203
Copy link

When writing GraphQL Schemas, we use a .gql file to enable highlighting and auto completing. But if there are other services exposes a graphql schema, we currently do not have a way to reference it in our *.gql files, how can we do that? For letting current project remote schemas don't report errors.

@VojtechStep
Copy link

Not sure if this is of any help, but take a look at graphql-cli. It lets you fetch remote schema and save it to a file with this command:

graphql get-schema -e <url> --all false -o <outFile>

I don't work with the .gql files ever, but I suppose you can then reference this exported file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants