-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateItineraryLocation.graphql
More file actions
37 lines (36 loc) · 1019 Bytes
/
CreateItineraryLocation.graphql
File metadata and controls
37 lines (36 loc) · 1019 Bytes
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
# Add a location to our itinerary, associating the place to Mavis The Grocer
# using the Facebook Page identifier. Once the location is added to the
# itinerary, we query back the create items on the itinerary.
mutation createItineraryLocation(
$itineraryId: ID!
$title: String!
$synopsis: String
$placeId: ID
$longitude: Float!
$latitude: Float!
) {
# Use the createItineraryLocation mutation operation
createItineraryLocation(
# Supply our Itinerary to add the item to
itineraryId: $itineraryId
# Describe the location
location: {
# Provide some optional content to personalise the itinerary
title: $title
synopsis: $synopsis
# Link the location to a known place
place: {
# Referencing the place from Facebook, etc
id: $placeId
# Providing the position lon/lat
position: { lon: $longitude, lat: $latitude }
}
}
) {
# Read back the location just created
location {
__typename
id
}
}
}