-
Notifications
You must be signed in to change notification settings - Fork 0
/
ListIconSilhouettes.graphql
43 lines (39 loc) · 1.04 KB
/
ListIconSilhouettes.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
# Lists icons that have been created for a supplied profile.
query ListIconSilhouettes($profileId: ID!, $first: Int!, $after: String) {
# Use the icons() operation in order to read back icons for the profile
iconResources(
# 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 icon
node {
# Type and ID
id
__typename
# Name and other identifiers
name
key
... on IconSilhouette {
viewBox
paths
}
}
# This is the cursor of this node, you can use this for passing to "after"
# when requesting results after this record
cursor
}
# Total icons
totalCount
# Pagination information
pageInfo {
hasNextPage
endCursor
}
}
}