After referring this guide I needed to access the github graphql
by using curl
for a testing purpose. I tried this simple command
You just need to escape the double quotes that are inside the JSON as the query
$ curl -i -H 'Content-Type: application/json' -H "Authorization: bearer myGithubAccessToken" -X POST -d '{"query": "query {repository(owner: \"wso2\", name: \"product-is\") {description}}"}' https://api.github.com/graphql