This guide update for Original post: https://medium.com/mindorks/what-is-graphql-and-using-it-on-android-ab8e493abdd7
Please note this guide replace for Step 2 in original post
Before we begin, make sure you have:
- Node.js v6.9.0 or greater
- npm 3.10.8 or greater
- git v2.14.1 or greater
You can check requirement follow command
Run command in terminal
npm install -g apollo
Please follow step-by-step
Run command in terminal
apollo service:download --endpoint=https://api.github.com/graphql --header="Authorization: Bearer d944c9d296b59c5ae47553707af717—————“
Please replace d944c9d296b59c5ae47553707af717—————
with your token
After run command, you can see a file schema.json
in current directory in disk.
Now you can continue from line Now make a file with .graphql queries and add following queries
in original post