We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've got this to work using Postman, however the following code generates a JSON parse error?
const graphql = require('graphql.js'); const graph = graphql('https://api.github.com/graphql', { method: "POST", headers: { "User-Agent": "node", "Authorization": "Bearer <github-token>" } }); const query = graph(`query { viewer { login name } }`); query().then( res => console.log(JSON.stringify(res)), err => console.error(err) );
{ message: 'Problems parsing JSON', documentation_url: 'https://developer.github.com/v4' }
The text was updated successfully, but these errors were encountered:
You can generate your token here: https://github.com/settings/tokens
Sorry, something went wrong.
No branches or pull requests
I've got this to work using Postman, however the following code generates a JSON parse error?
Code
Error
The text was updated successfully, but these errors were encountered: