...

Text file src/github.com/vektah/gqlparser/validator/testdata/extensions.graphql

Documentation: github.com/vektah/gqlparser/validator/testdata

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

View as plain text