News for hackers. Stuff that matters.
Re:GraphQL Is a Trap? by brasic on Friday May 06, 2022 @10:11PM (#31291586)
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

There are no comments on this comment yet.