Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
brasic
on May 7, 2022
|
parent
|
context
|
favorite
| on:
GraphQL Is a Trap?
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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: