-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGetCollectionLocation.graphql
60 lines (58 loc) · 1.42 KB
/
GetCollectionLocation.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
# Loads in a specific collection location.
query getCollectionLocation($id: ID!) {
collectionItem(
# Provide the individual collection item ID
id: $id
) {
# Identifier/Types
id
__typename
... on CollectionLocation {
# Load some of the content as you need
title
synopsis
# ... description, tags, websiteUrl, readMoreUrl, etc etc
# Load the preferred media
preferredMedia {
resource {
... on MediaImage {
# Load a thumnail at the desired size
thumbnail: source(bestFit: [100, 100]) {
url
}
card: source(bestFit: [600, 400]) {
url
}
# Text
altText
caption
# Photographer Attribution
copyright
attribution
}
}
}
# Load information about the place by joining the place node, allowing
# access to all the underlying place information that is provided by a
# place provider service (Facebook, ATDW, Yelp, TripAdvisor etc)
place {
# Identifier/Types
id
__typename
# Load contact information about the place
contact {
phoneNumber
websiteUrl
facebookUrl
}
# Geocoding positions
position {
lon
lat
}
# Maki icon
maki
}
}
}
}