I am trying to filter a collection by product tags, but I am getting ‘Access denied’.
It’s strange because I can filter products:
query Smu {
products(query:"title:Samsung Gear S3" first: 10) {
edges {
node {
title
tags
collections(first: 10) {
edges {
node {
handle
title
}
}
}
}
}
}
}
As I mentioned, the above query works and I get all products named Samsung Gear S3
But when I try to filter the same in Collection:
query Bar {
collection(id: "gid://shopify/Collection/88417960009") {
products(query:"title:Samsung Gear S3" first: 10) {
edges {
node {
title
productType
}
}
}
}
}
It returns
{
"data": {
"collection": null
},
"errors": [
{
"message": "access denied",
"locations": [
{
"line": 18,
"column": 5
}
],
"path": [
"collection",
"products"
]
}
],
"extensions": {
"cost": {
"requestedQueryCost": 13,
"actualQueryCost": 1,
"throttleStatus": {
"maximumAvailable": 1000,
"currentlyAvailable": 999,
"restoreRate": 50
}
}
}
}
Why could this be happening?
Best regards