4 ms·
The GraphQL API works just as well with curl. There's no getting around the fact that you need to pass a query text but assuming you put the query in a file th
by brasic 4y ago
The GraphQL API works just as well with curl. There's no getting around the fact that you need to pass a query text but assuming you put the query in a file the curl syntax is identical to the REST API:
curl https://api.github.com/graphql -H "Authorization: bearer $TOKEN" --data @query.graphql