jcward / haxe-graphql

Utilities for working with Haxe and GraphQL.
MIT License
23 stars 6 forks source link

Fragment definitions are sensitive to order of definition #31

Closed jcward closed 6 years ago

jcward commented 6 years ago

Fragments can reference other fragments. Right now, the generator throws if the order of definitions in the graphql document define the referenced fragment after the referencing fragment:

fragment OuterFrag on SomeData {
  foo
  ...InnerFrag
}

fragment InnerFrag on SomeData {
  bar
}

The order of definitions should have no impact on the generator.