File: extensions.graphql

package info (click to toggle)
golang-github-vektah-gqlparser 2.5.31-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,120 kB
  • sloc: javascript: 204; sh: 46; makefile: 11
file content (53 lines) | stat: -rw-r--r-- 1,005 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
schema {
    # query comment
    query: Query
}

extend schema {
    # subscription comment
    subscription: Subscription
}

# query extends comment
type Query @extends {
    # dogs comment
    dogs: [Dog!]!
    # end of type comment
}

# subscription comment
type Subscription {
    # dogEvents comment
    dogEvents: [Dog!]!
    # end of type comment
}

# Dog comment
type Dog {
    # Dog name comment
    name: String!
    # end of type comment
}

# Person comment
type Person @key(fields: "name") {
    # Person name comment
    name: String!
    # end of type comment
}

# extend type Dog comment
extend type Dog {
    # Dog owner comment
    owner: Person! @permission(permission: "admin")
    # end of type comment
}

# directive @persmission comment
directive @permission(permission: String!) on FIELD_DEFINITION
# directive @extends comment
directive @extends on OBJECT
# directive @key comment
directive @key(fields: String!) on OBJECT | INTERFACE
# end of file comment
# end of file comment 2