...

Text file src/github.com/vektah/gqlparser/v2/formatter/testdata/baseline/FormatSchema/comments/extensions.graphql

Documentation: github.com/vektah/gqlparser/v2/formatter/testdata/baseline/FormatSchema/comments

     1# directive @extends comment
     2directive @extends on OBJECT
     3# directive @key comment
     4directive @key(fields: String!) on OBJECT | INTERFACE
     5# directive @persmission comment
     6directive @permission(permission: String!) on FIELD_DEFINITION
     7# Dog comment
     8type Dog {
     9	# Dog name comment
    10	name: String!
    11	# Dog owner comment
    12	owner: Person! @permission(permission: "admin")
    13	# end of type comment
    14}
    15# Person comment
    16type Person @key(fields: "name") {
    17	# Person name comment
    18	name: String!
    19	# end of type comment
    20}
    21# query extends comment
    22type Query @extends {
    23	# dogs comment
    24	dogs: [Dog!]!
    25	# end of type comment
    26}
    27# subscription comment
    28type Subscription {
    29	# dogEvents comment
    30	dogEvents: [Dog!]!
    31	# end of type comment
    32}

View as plain text