-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
42 lines (37 loc) · 1.03 KB
/
schema.graphql
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
# @contact isn't being printed to the generated-schema.graphql file
# See https://github.com/apollographql/federation/issues/1847
directive @contact(
"Contact title of the subgraph owner"
name: String!
"URL where the subgraph's owner can be reached"
url: String
"Other relevant notes can be included here; supports markdown links"
description: String
) on SCHEMA
extend schema
@contact(
name: "Thing Server Team"
url: "https://myteam.slack.com/archives/teams-chat-room-url"
description: "send urgent issues to [#oncall](https://yourteam.slack.com/archives/oncall)."
)
@link(
url: "https://specs.apollo.dev/federation/v2.3",
import: [
"@key", "@extends", "@shareable", "@inaccessible", "@override", "@external", "@provides", "@requires", "@tag",
"@composeDirective", "@interfaceObject"
]
)
type Query {
thing(id: ID!): Thing
}
type Mutation {
createThing(thing: CreateThing!): Thing
}
type Thing @key(fields: "id") {
id: ID!
name: String
}
input CreateThing {
id: ID!
name: String
}