-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssociateItineraryLocationIcon.graphql
More file actions
43 lines (39 loc) · 1.13 KB
/
AssociateItineraryLocationIcon.graphql
File metadata and controls
43 lines (39 loc) · 1.13 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
# Associates an itinerary icon composition with an itinerary location. This can
# be done during creation of the itinerary location, or via an update on the
# itinerary location. This example shows it being used in the
# updateItineraryLocation operation.
#
# Note: To associate an icon, you must first create an icon for the profile,
# then create an itinerary icon composition.
mutation AssociateItineraryLocationIcon($id: ID!, $icon: ID!) {
# Leverage the updateItinerary() operation to associate
updateItineraryLocation(
id: $id
location: {
# This is the itinerary icon ID, and you should make sure you have
# obtained this from first adding icons to the itinerary.
icon: $icon
}
) {
# Read back the affected location
location {
id
__typename
# Read the itinerary icon
icon {
# Identifiers for the itinerary icon
id
__typename
# Obtain the icon resource
resource {
__typename
... on IconResource {
id
}
}
# ...and any other icon composition elements
iconFill
}
}
}
}