forked from OpenBeta/openbeta-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClimbEdit.gql
More file actions
86 lines (78 loc) · 1.53 KB
/
ClimbEdit.gql
File metadata and controls
86 lines (78 loc) · 1.53 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
type Mutation {
"""
Create or update one or more climbs.
"""
updateClimbs(input: UpdateClimbsInput): [ID]
"""
Delete one or more climbs
"""
deleteClimbs(input: DeleteManyClimbsInput): Int
}
input DeleteManyClimbsInput {
parentId: ID
idList: [ID]
}
"""
Create/update climbs input parameter.
"""
input UpdateClimbsInput {
"Parent area ID"
parentId: ID!
"Array of change records"
changes: [SingleClimbChangeInput]
}
"""
Climb change record. If the climb ID is omitted or does not exist in the database, a new climb will be created.
"""
input SingleClimbChangeInput {
"Climb UUID"
id: ID
name: String
disciplines: DisciplineType
grade: String
leftRightIndex: Int
description: String
location: String
protection: String
"Legacy FA data"
fa: String
"Length in meters"
length: Int
"Number of fixed anchors"
boltsCount: Int
"List of Pitch objects representing individual pitches of a multi-pitch climb"
pitches: [PitchInput]
experimentalAuthor: ExperimentalAuthorType
}
input GradeTypeInput {
vscale: String
yds: String
ewbank: String
french: String
brazilianCrux: String
font: String
uiaa: String
}
input PitchInput {
id: ID!
parentId: ID!
pitchNumber: Int!
grades: GradeTypeInput
disciplines: DisciplineType
}
input DisciplineType {
trad: Boolean
sport: Boolean
bouldering: Boolean
deepwatersolo: Boolean
alpine: Boolean
snow: Boolean
ice: Boolean
mixed: Boolean
aid: Boolean
tr: Boolean
}
input ExperimentalAuthorType {
displayName: String!
url: String!
}