-
Notifications
You must be signed in to change notification settings - Fork 0
/
supergraph.graphql
50 lines (38 loc) · 1.22 KB
/
supergraph.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
43
44
45
46
47
48
49
50
schema
@core(feature: "https://specs.apollo.dev/core/v0.2"),
@core(feature: "https://specs.apollo.dev/join/v0.1", for: EXECUTION)
{
query: Query
mutation: Mutation
}
directive @core(as: String, feature: String!, for: core__Purpose) repeatable on SCHEMA
directive @join__field(graph: join__Graph, provides: join__FieldSet, requires: join__FieldSet) on FIELD_DEFINITION
directive @join__graph(name: String!, url: String!) on ENUM_VALUE
directive @join__owner(graph: join__Graph!) on INTERFACE | OBJECT
directive @join__type(graph: join__Graph!, key: join__FieldSet) repeatable on INTERFACE | OBJECT
type Mutation {
empty: Boolean! @join__field(graph: ACCOUNTS_GRAPHQL)
}
type Query {
empty: Boolean! @join__field(graph: ACCOUNTS_GRAPHQL)
todos: [Todo!]! @join__field(graph: ACCOUNTS_GRAPHQL)
}
type Todo {
done: Boolean!
id: ID!
text: String!
}
enum core__Purpose {
"""
`EXECUTION` features provide metadata necessary to for operation execution.
"""
EXECUTION
"""
`SECURITY` features provide metadata necessary to securely resolve fields.
"""
SECURITY
}
scalar join__FieldSet
enum join__Graph {
ACCOUNTS_GRAPHQL @join__graph(name: "accounts-graphql" url: "http://accounts-graphql:3000/graphql")
}