I need to fetch all products using Shopify API by collection id...
I tried:
mutation {
bulkOperationRunQuery(
query:"""
{
products(query: "tag:women OR collection:172173852808") {
edges{
node{
id
tags
images {
edges {
node {
id
originalSrc
}
}
}
variants(first:10) {
edges{
node{
id
price
compareAtPrice
image{
originalSrc
}
inventoryQuantity
selectedOptions{
name
value
}
sku
title
weight
weightUnit
}
}
}
}
}
}
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
Result Shopify gives me is just product with tags: women and there are no products from collection id 172173852808
How to run a query to get products from one or more specific connections?