diff --git a/.changeset/some-ghosts-rescue.md b/.changeset/some-ghosts-rescue.md new file mode 100644 index 000000000..e449e0b6d --- /dev/null +++ b/.changeset/some-ghosts-rescue.md @@ -0,0 +1,5 @@ +--- +"shopify-buy": patch +--- + +Fix cart query for lines pagination diff --git a/src/graphql/CartFragment.graphql b/src/graphql/CartFragment.graphql index 65a42c2c2..396eec5b4 100644 --- a/src/graphql/CartFragment.graphql +++ b/src/graphql/CartFragment.graphql @@ -2,12 +2,13 @@ fragment CartFragment on Cart { id createdAt updatedAt - lines(first: 10) { + lines(first: 250) { pageInfo { hasNextPage hasPreviousPage } edges { + cursor node { ...CartLineFragment } @@ -162,12 +163,13 @@ fragment CartFragment on Cart { handle title } - cartLines(first: 10) { + cartLines(first: 250) { pageInfo { hasNextPage hasPreviousPage } edges { + cursor node { id }