Shopify Graphql API Not fetching Products belonging to a collection

vigneshR
Tourist
7 0 1
{
productVariants(first: 230, query: "title:'.$size.' collection:'.$collection.' product_status:active") {
edges {
cursor
node {
id
title
inventoryQuantity
price
product{
id
}
image {
originalSrc
id
}
selectedOptions{
name
value
}
}
}
}
}
Im passing the above api to find products having certian variant title and belongs to a collection.However these seems to work only for some products belonging to a collection and for some collections the api is not working
Replies 0 (0)