...

Text file src/github.com/vektah/gqlparser/formatter/testdata/baseline/FormatSchemaDocument/extensions.graphql

Documentation: github.com/vektah/gqlparser/formatter/testdata/baseline/FormatSchemaDocument

     1schema {
     2	query: Query
     3}
     4extend schema {
     5	subscription: Subscription
     6}
     7directive @permission(permission: String!) on FIELD
     8directive @extends on OBJECT
     9directive @key(fields: String!) on OBJECT | INTERFACE
    10type Query @extends {
    11	dogs: [Dog!]!
    12}
    13type Subscription {
    14	dogEvents: [Dog!]!
    15}
    16type Dog {
    17	name: String!
    18}
    19type Person @key(fields: "name") {
    20	name: String!
    21}
    22extend type Dog {
    23	owner: Person! @permission(permission: "admin")
    24}

View as plain text