productVariantsCount filter

Hi,

At the moment the productVariantsCount has a query parameter, however the docs and in testing no filters are supported or work.

Are there any plans to support queries here? As the productsCount query works and supports the usual set.
It would be really helpful to be able to count the variants that match a filter

Hey @JordanFinners! You’re right that the query parameter exists on productVariantsCount, but it explicitly doesn’t support any search fields - which is a bit odd!

I looked internally for projects that might have improvements to this this in scope but didn’t find any, initially at least.

If you can share some example use cases I’ll be happy to share them with the Products team and get it on their radar. Can’t promise anything, but the more feedback we get on these things the more likely they are to be considered!

1 Like

Thank you for looking!
Just to be able to do quick counts for example there are X product variants with tag, or X product variants beginning with SKU etc.
I can’t use the productCounts because each can have a varying number of variants, so it gives a poor estimate of the amount of variants that would be affected by a change or included in a group :slight_smile:

Gotcha - I agree being able to quickly count variants with specific tags or SKU patterns would be useful for impact analysis before making bulk changes.

I’ve passed this feedback along to the Products team, thanks for raising this with us!

1 Like