Command required to fetch shcema.json from GitHub
hr147 opened this issue · comments
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
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