Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
christopherreay opened this issue Jun 27, 2024 · 1 comment

Comments

@christopherreay
Copy link

christopherreay commented Jun 27, 2024

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

@christopherreay christopherreay changed the title Query format in docs is totally different to graphql web ui graphql query format in tutorial is different from the schema, and also another thing Jun 27, 2024
@art-w
Copy link
Contributor

art-w commented Aug 30, 2024

Thanks a lot for discovering and reporting these issues with such details! PRs have been opened to address both points. Do not hesitate if you have seen any other weird behavior that we could address :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants