Closed 2BitSalute closed 9 months ago
I found that I have to specify the content type when sending the curl command to test the GraphQL endpoint, like this:
curl
curl http://localhost:8080/graphql -d '{"query": "query { main { head { hash } } }"}' -H 'Content-Type: application/json'
I don't know if the behavior changed or if the tutorial command was always incomplete. Either way, the tutorial should be updated.
Good catch! Thanks a lot for reporting this issue, I've updated the tutorial :)
I found that I have to specify the content type when sending the
curl
command to test the GraphQL endpoint, like this:I don't know if the behavior changed or if the tutorial command was always incomplete. Either way, the tutorial should be updated.