getAllCollectionsQuery top-level constant
String
const getAllCollectionsQuery
Query to get all collections
Implementation
const String getAllCollectionsQuery = r'''
query($cursor: String, $sortKey: CollectionSortKeys, $reverse: Boolean){
collections(first: 250, after: $cursor, sortKey: $sortKey, reverse: $reverse) {
pageInfo{
hasNextPage
}
edges {
cursor
node {
title
description
descriptionHtml
handle
id
updatedAt
image {
altText
id
originalSrc
}
products(first: 250) {
edges {
node {
variants(first: 250) {
edges {
node {
title
image {
altText
id
originalSrc
}
priceV2 {
amount
currencyCode
}
compareAtPriceV2 {
amount
currencyCode
}
weight
weightUnit
sku
requiresShipping
selectedOptions {
name
value
}
availableForSale
quantityAvailable
}
}
}
availableForSale
collections(first: 250) {
edges {
node {
description
descriptionHtml
id
handle
title
updatedAt
}
}
}
createdAt
description
descriptionHtml
handle
id
images(first: 10) {
edges {
node {
altText
id
originalSrc
}
}
}
onlineStoreUrl
productType
publishedAt
tags
title
updatedAt
vendor
}
cursor
}
pageInfo {
hasNextPage
}
}
}
}
}
}
''';