...

Text file src/github.com/vektah/gqlparser/v2/formatter/testdata/source/schema/extensions.graphql

Documentation: github.com/vektah/gqlparser/v2/formatter/testdata/source/schema

     1schema {
     2    # query comment
     3    query: Query
     4}
     5
     6extend schema {
     7    # subscription comment
     8    subscription: Subscription
     9}
    10
    11# query extends comment
    12type Query @extends {
    13    # dogs comment
    14    dogs: [Dog!]!
    15    # end of type comment
    16}
    17
    18# subscription comment
    19type Subscription {
    20    # dogEvents comment
    21    dogEvents: [Dog!]!
    22    # end of type comment
    23}
    24
    25# Dog comment
    26type Dog {
    27    # Dog name comment
    28    name: String!
    29    # end of type comment
    30}
    31
    32# Person comment
    33type Person @key(fields: "name") {
    34    # Person name comment
    35    name: String!
    36    # end of type comment
    37}
    38
    39# extend type Dog comment
    40extend type Dog {
    41    # Dog owner comment
    42    owner: Person! @permission(permission: "admin")
    43    # end of type comment
    44}
    45
    46# directive @persmission comment
    47directive @permission(permission: String!) on FIELD_DEFINITION
    48# directive @extends comment
    49directive @extends on OBJECT
    50# directive @key comment
    51directive @key(fields: String!) on OBJECT | INTERFACE
    52# end of file comment
    53# end of file comment 2

View as plain text