-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathListCollectionItems.graphql
52 lines (50 loc) · 1.41 KB
/
ListCollectionItems.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
# Performs a query on a collection in order to obtain basic locations.
query listCollectionItems($collectionIds: [ID!], $first: Int!, $after: String) {
# Use the collectionItems operation to query across items
collectionItems(
# Supply which collections to query
collectionIds: $collectionIds
# Pagination controls for relay "cursor connections"
# See: https://relay.dev/graphql/connections.htm
first: $first
after: $after
) {
edges {
node {
# ID/Types
id
__typename
# Obtain information specifically about the location
... on CollectionLocation {
# Access the associated place node
place {
# ID/Types
id
__typename
# Wide range of place information to be able to access based on the
# specific supported Place Provider the reference is obtained from
name
# As a simple example, request parts of the address
address {
locality
}
# Or the categories
layers {
name
}
# Or a suggested maki icon
maki
}
}
}
# Use the cursor and supply to "after" in operation to paginate
cursor
}
# Information to help determine your pagination
pageInfo {
hasNextPage
endCursor
}
totalCount
}
}