graphQL for fetching product

New Member
6 0 0

I want to fetch product with graphQl in such a way that, I could get minimum of at least 100 product with all variation associated with it along with collection ids(both smart and custom).

I tried

but here it seems we cannot achieve to get all variation of a product even when first 10 products is selected.  Is there any way around ?

Also can't we put a condition to fetch variation of products only when a product is variable product ?

Also, how would we know the exact number of variation of a product ?

I mean, If we fetch 100 product with first 5 variation, then the cost is simply placed, even if the product doesn't have the variation.