I've been browesing several topics in this forum but I haven't found any answer.
We are doing a React webapp which uses the Storefront API with GraphQL. On collection page we would like to list 10 products and display a pagination index, eg: "1, 2, 3 ... last"
Unfortunately I havent found any way to get the total number of products per collection.
It'd be great to have a totalCount like this http://graphql.org/learn/pagination/#complete-connection-model but it isn't implemented. How can I achieve the same thing?
I know this is an old post, but you can use the filters to sum up the available + unavailable products to get the total count for the collection
// collection query