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

graphql query format in tutorial is different from the schema, and also another thing #2320

Open christopherreay opened 2 months ago

christopherreay commented 2 months ago

This query format documented in: https://irmin.io/tutorial/graphql/ as compared to the graphiQL web UI is different

  1. everywhere it says "key", is actually "path". Took a minute the graphiQL ui was trying to explain this, but because of 2. I was lost for some time
  2. If you happen to use the "history" to enter an old query, two query parameters are added to the URL &variables=null&operationName=undefined, which causes irmin-graphql to return code 500, and also something else impenetrable happens to the url encoded query. These query parameters will remain on the URL, even if some noobwan pastes something that used to work from the tutorial into the box directly without using the history. Until the address bar is manually returned to localhost:8080/graphql, basically nothing anyone tries will work!

Mind was trully boggled for about 3 or 4 hours of having no idea where to look. I looked... in a lot of places, read source code, etc.

big love, amazing project, tytyty