I’m trying to query a product based on a metafield value through a collection since this is the only possible way at the moment:
I have written the query below:
query Collection {
collection(id: "gid://shopify/Collection/429854163254") {
handle
products(first: 30,
filters: {
productMetafield: {
namespace: "mangento",
key: "ceid",
value: "Round"}
}) {
edges {
node {
handle
title
}
}
}
}
}
And it returns this error:
Field 'products' doesn't accept argument 'filters'
I have enabled Search & Discovery app, as i read somewhere that it is required but the error still appears.
Honestly the documentation is quiet confusing for such simple things, a little help would be amazingly appreciated.
Thanks and regards.