forked from Shopify/dawn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
authors.gql
56 lines (55 loc) · 1.31 KB
/
authors.gql
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
# ADMIN
{
collections(first: 250, query: "template_suffix:'author'") {
edges {
node {
id
title
handle
updatedAt
sortOrder
templateSuffix
metafields(first: 5) {
edges {
node {
key
value
}
}
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}
# STOREFRONT -- https://shopify.dev/docs/api/storefront
query ($cursor: String) {
collections(first: 2, query:"title:author*", after: $cursor) {
edges {
node {
id
title
handle
updatedAt
image {
url
}
authorLastFirst: metafield(namespace: "godine", key: "author_last_first") {
value
type
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}