-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGraphQLTypeDefinitions.graphql
74 lines (62 loc) · 1.45 KB
/
GraphQLTypeDefinitions.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
### 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 {
characterEditor(editHash: ID!): CharacterEditor
character(id: ID!): Character
}
union CharacterEditor = CharacterEditorView | Error
type CharacterEditorView {
character: Character!
}
type Character {
id: ID!
name: String!
imageUrl: String
currentHealth: Int!
maximumHealth: Int!
hasMana: Boolean!
currentMana: Int!
maximumMana: Int!
hasFatePoints: Boolean!
currentFatePoints: Int!
maximumFatePoints: Int!
}
type Error {
reason: String!
}
type Mutation {
updateCharacter(input: UpdateCharacterInput!): Boolean
createCharacter: CreateCharacterResult!
}
input UpdateCharacterInput {
editHash: String!
updates: CharacterUpdateFields!
}
input CharacterUpdateFields {
name: String
maximumHealth: Int
currentHealth: Int
hasMana: Boolean
maximumMana: Int
currentMana: Int
hasFatePoints: Boolean
maximumFatePoints: Int
currentFatePoints: Int
imageUrl: String
}
union CreateCharacterResult = Error | CreateCharacterSuccess
type CreateCharacterSuccess {
editHash: String!
}