-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUpdateItineraryIcons.graphql
56 lines (51 loc) · 1.42 KB
/
UpdateItineraryIcons.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
# Updates the icons associated with an Itinerary. Icons for an itinerary are
# composed of the icons associated to a profile, as well as customisations.
mutation UpdateItineraryIcons(
$id: ID!
$createIcons: [CreateIconCompositionInput!]
$updateIcons: [UpdateIconCompositionInput!]
$deleteIcons: [ID!]
) {
# Leverage the updateItinerary() operation to update the itinerary icons
updateItinerary(
id: $id
itinerary: {
# Create new itinerary icon compositions
# You will need to have created the icons for the profile first
createIcons: $createIcons
# Update existing icon compositions
updateIcons: $updateIcons
# Delete any itinerary icon compositions
deleteIcons: $deleteIcons
}
) {
# Read back the itinerary affected fields
itinerary {
# Identifiers
id
__typename
# Read back icons associated to this itinerary
icons(first: 100) {
edges {
node {
# Identifier for the compositions
id
__typename
# The icon resource (associated to the profile)
resource {
__typename
# Read back in the icon silhouette
... on IconSilhouette {
id
viewBox
paths
}
}
# Localised use of the icon
iconFill
}
}
}
}
}
}