mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
feat: implement products infinite loading
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
@@ -42,14 +42,14 @@ export const getCollectionProductsQuery = /* GraphQL */ `
|
||||
$sortKey: ProductCollectionSortKeys
|
||||
$reverse: Boolean
|
||||
$filters: [ProductFilter!]
|
||||
$after: String
|
||||
) {
|
||||
collection(handle: $handle) {
|
||||
products(sortKey: $sortKey, filters: $filters, reverse: $reverse, first: 100) {
|
||||
products(sortKey: $sortKey, filters: $filters, reverse: $reverse, first: 50, after: $after) {
|
||||
edges {
|
||||
node {
|
||||
...product
|
||||
}
|
||||
cursor
|
||||
}
|
||||
filters {
|
||||
id
|
||||
|
Reference in New Issue
Block a user