I need to get a total count of all variants.
The endpoint to do this with products is:
However there doesn't seem to be a way to get a total variants count, only the amount of variants per product which isn't useful.
I would have to loop through each product making 100's of calls to count the number of total variants, or use
and then count the variants in the array. Is there a simpler way?
Also, got the problem here.
This is particularly confusing since many other entities (customers, orders, products) have this very handy "count" endpoint.
Besides, it seems that the GraphQL API also lacks the ability to get the total count of records.