I’m trying to do a basic filter on the unstable graphql using the following query:
query Products {
collections(first: 1) {
edges {
node {
products(first: 5, after: "eyJsYXN0X3ZhbHVlIjoiMSJ9", filters: {available: true}) {
edges {
node {
availableForSale
}
cursor
}
pageInfo {
hasNextPage
hasPreviousPage
endCursor
}
}
}
}
}
}
In addition, it is assumed that the cusor value obtained is inserted in the after field.
I have tried pagination after checking the number of items,
Compared to when I tried it without filtering, hasPreviousPage returns false no matter which cusor I put in after.
I’m getting something like this, Is there a problem with the query or is this feature not fully supported yet?
Also, as a side note
I would also like to report that in cusor, there were last_id and last_value ones, but after filtering, there were only last_value items!
Thanks!