Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/some-ghosts-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shopify-buy": patch
---

Fix cart query for lines pagination
6 changes: 4 additions & 2 deletions src/graphql/CartFragment.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ fragment CartFragment on Cart {
id
createdAt
updatedAt
lines(first: 10) {
lines(first: 250) {
pageInfo {
hasNextPage
hasPreviousPage
}
edges {
cursor
node {
...CartLineFragment
}
Expand Down Expand Up @@ -162,12 +163,13 @@ fragment CartFragment on Cart {
handle
title
}
cartLines(first: 10) {
cartLines(first: 250) {
pageInfo {
hasNextPage
hasPreviousPage
}
edges {
cursor
node {
id
}
Expand Down