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.
http://facebook.github.io/graphql/June2018/#sec-Object-Extensions
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 thetype Query
.