Hi All,
I’m running into a really odd problem with the GraphQL API. When I execute the following query:
{
collection(id: "gid://shopify/Collection/323987800259") {
id
productsCount {
count
}
}
}
I get back the number of products in the collection, but if I then go to the Shopify Admin, and remove a product from that collection and run the query again, the product count still shows the old count.
The product count will continue to be wrong for GraphQL until I do something else that requires a save on the collection page (like change the title). If I execute the query after that, the count is correct again.
I can do a video to show what’s happening if that will help.
Thanks!