When querying (with GraphQL) the products count of a collection, in rare instances we return a negative number - which is obviously incorrect and causes a large number of issues for us.
query checkAssets {
collection(id: "gid://shopify/Collection/285327196259") {
productsCount {
count
precision
}
updatedAt
products(first: 250) {
pageInfo {
hasNextPage
endCursor
}
edges {
node {
id
title
}
}
}
}
}
This negative productsCount is also on the /collections/collection-handle.json version of the collection frontend:
The collection I’ve referenced has over 1000 products.
What is going on here?