Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I understand that you can retrieve the number of products using the Admin API's collection.productsCount. However, I'd like to achieve the same using the Storefront API. Is there a way to do this? If anyone has any information, please kindly share your knowledge.
https://shopify.dev/docs/api/admin-graphql/2023-10/objects/Collection
+1 for this, surely this is a basic requirement. At the moment I'd have to bypass all pagination and do a length check on products. The productsConnection should have a totalCount as described in the GraphQL docs ... https://graphql.org/learn/pagination/ but this is missing!
Learn what's possible with customizing Shopify Checkout beyond what's available out of...
By Shopify Feb 19, 20252m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025