...
1schema {
2 # query comment
3 query: Query
4}
5extend schema {
6 # subscription comment
7 subscription: Subscription
8}
9# directive @persmission comment
10directive @permission(permission: String!) on FIELD_DEFINITION
11# directive @extends comment
12directive @extends on OBJECT
13# directive @key comment
14directive @key(fields: String!) on OBJECT | INTERFACE
15# query extends comment
16type Query @extends {
17 # dogs comment
18 dogs: [Dog!]!
19 # end of type comment
20}
21# subscription comment
22type Subscription {
23 # dogEvents comment
24 dogEvents: [Dog!]!
25 # end of type comment
26}
27# Dog comment
28type Dog {
29 # Dog name comment
30 name: String!
31 # end of type comment
32}
33# Person comment
34type Person @key(fields: "name") {
35 # Person name comment
36 name: String!
37 # end of type comment
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# end of file comment
46# end of file comment 2
View as plain text