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

Command required to fetch shcema.json from GitHub #36

Open
hr147 opened this issue May 4, 2020 · 1 comment
Open

Command required to fetch shcema.json from GitHub #36

hr147 opened this issue May 4, 2020 · 1 comment

Comments

@hr147
Copy link

hr147 commented May 4, 2020

can you please share or document the command to download schema.json ?

Following command download the scheme but it not parseable for the Xcode

apollo schema:download --endpoint=https://api.github.com/graphql --header="Authorization: bearer <token>" --header="Accept: application/vnd.github.v4.idl" > schema.json

@khoren93
Copy link
Owner

khoren93 commented May 4, 2020

Hi @hr147
You can follow this doc

or try this command from GitHub doc

curl -H "Authorization: bearer <token>" https://api.github.com/graphql > schema.json

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

No branches or pull requests

2 participants