jcward / haxe-graphql

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

Support 'extend type' object extension #33

Closed jcward closed 5 years ago

jcward commented 5 years ago

http://facebook.github.io/graphql/June2018/#sec-Object-Extensions

type Person {
  name: String
}

extend type Person {
  age: Int
}

Basic use case: allows splitting .gql files into many sources, where each may define some Queries (whereas the schema only accepts one type Query.) Thus, each file may want to extend the type Query.