doyensec / GQLSpection

GQLSpection - parses GraphQL introspection schema and generates possible queries
Apache License 2.0
66 stars 7 forks source link

Fix parsing of GraphQL Interfaces #22

Closed execveat closed 1 year ago

execveat commented 1 year ago

Write test cases and implement support for interfaces. The basic functionality should work already, but some fields are only reachable by using ... on syntax.

Documentation on interfaces:

execveat commented 1 year ago

GQLSpection has implemented support for generating queries from a schema with interfaces. However, right now interfaces get parsed incorrectly in the editor tab:

query GetSearchResults {
  search(contains: "Shakespeare") {
    __typename
    ...
    on
    Book {
      title
    }
    ...
    on
    Author {
      name
    }
  }
}
execveat commented 1 year ago

I completely rewrote the request parser, it should fix this.