'Graphql Storefront Shopify API fast dynamic filtration

I filter products by color, size, vendor etc.

I would like to query available filters and display filter count dynamically based on remaining products after filtration. Solution based on ReactJS works too slow with 50.000+ products and I need GraphQL solution. I found example how to query available filters by collection handle. But nothing similar to behaviour I described above.

Thank you for help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source