-
Notifications
You must be signed in to change notification settings - Fork 36
/
schema.graphql
49 lines (40 loc) · 991 Bytes
/
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
43
44
45
46
47
48
49
### THIS FILE IS AUTO GENERATED
"""
Instruction for establishing a live connection that is updated once the underlying data changes.
"""
directive @live(
"""
Whether the query should be live or not.
"""
if: Boolean = true
"""
Propose a desired throttle interval ot the server in order to receive updates to at most once per "throttle" milliseconds. The server must not accept this value.
"""
throttle: Int
) on QUERY
type Query {
todos: [Todo!]!
}
type Todo {
id: ID!
content: String!
isCompleted: Boolean!
}
type Mutation {
todoAdd(id: ID!, content: String!): TodoAddResult!
todoDelete(id: ID!): TodoRemoveResult!
todoToggleIsCompleted(id: ID!): TodoToggleIsCompletedResult!
todoChangeContent(id: ID!, content: String!): TodoChangeContentResult!
}
type TodoAddResult {
addedTodo: Todo!
}
type TodoRemoveResult {
removedTodoId: ID!
}
type TodoToggleIsCompletedResult {
toggledTodo: Todo!
}
type TodoChangeContentResult {
changedTodo: Todo!
}