-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListItineraries.graphql
More file actions
35 lines (33 loc) · 1004 Bytes
/
ListItineraries.graphql
File metadata and controls
35 lines (33 loc) · 1004 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
# Query the itineraries that are created and associated to a profile.
query listItineraries($profileId: ID!, $first: Int!, $after: String) {
# Use the itineraries operation to query for a supplied profile
itineraries(
# You will need to have your profile ID to query
profileId: $profileId
# Pagination controls for relay "cursor connections"
# See: https://relay.dev/graphql/connections.htm
first: $first
after: $after
) {
# Using a relay style "cursor connection" specification response
edges {
# The node will contain each itinerary
node {
# Access information you want to return about the itineraries
id
__typename
# Select the fields ot return
title
}
# This is the cursor of this node, you can use this for passing to "after"
# when requesting results after this record
cursor
}
# Total itineraries
totalCount
pageInfo {
hasNextPage
endCursor
}
}
}