Skip to content

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

@christopherreay

Description

@christopherreay

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions