gemini-hlsw / clue

GraphQL client for Scala.
18 stars 5 forks source link

Manual fragment spreads #606

Closed rpiaggio closed 4 months ago

rpiaggio commented 4 months ago

Grackle now requires manually resolving fragment spreads.

rpiaggio commented 4 months ago

Not sure whhat fragments are but LGTM

fragment fooFields on Foo {
  id
  name
}

query {
  foo {
    ...fooFields
  }
}

The old grackle parser would solve the fragment and provide us with id and name inside foo in the main query. Now it provides the jigsaw pieces and we have to assemble it ourselves.