doyensec/GQLSpection

Parsing mistake

execveat opened this issue · 2 comments

query X {
  a(b:c) {
    d e f g h {
      i
    }
  }
}

Not always though. Hm, hard to nail down.

Ok, figured it out. The problem lies in pretty_print_graphql:

In [10]: print(gqlspection.utils.pretty_print_graphql("""
    ...: query a {
    ...:     b() {
    ...:         c
    ...:     }
    ...:     d
    ...:     e
    ...: """))
query a {
  b() {
    c 
  }
  d e