mirage / irmin

Irmin is a distributed database that follows the same design principles as Git
https://irmin.org
ISC License
1.83k stars 154 forks source link

Tutorial - CLI- GraphQL snippet #2279

Closed 2BitSalute closed 9 months ago

2BitSalute commented 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 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.

art-w commented 9 months ago

Good catch! Thanks a lot for reporting this issue, I've updated the tutorial :)