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 (33 lines) | stat: -rw-r--r-- 572 bytes parent folder | download
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
schema {
    query: Query
}

extend schema @exampleOnSchemaDirective(name: "foo") {
    subscription: Subscription
}

directive @exampleOnSchemaDirective(name: String!) on SCHEMA

type Query {
    dogs: [Dog!]!
}

type Subscription {
    dogEvents: [Dog!]!
}

type Dog {
    name: String!
}

type Person @favorite(name: "sushi") @favorite(name: "tempura") {
    name: String!
}

directive @favorite(name: String!) repeatable on OBJECT

extend type Dog {
    owner: Person! @permission(permission: "admin")
}

directive @permission(permission: String!) on FIELD_DEFINITION