Filtering products in a collection by tag #490
-
Sorry if this isn't the right place, but I figured I'm more likely to find a developer who can help me here 😅 {
collection(handle: "latest-stuff") {
products(first: 250, filters: {tag: "Tee"}) {
edges {
node {
tags
}
}
}
}
} The products returned don't seem to be filtered at all. {
"data": {
"collection": {
"products": {
"edges": [
{
"node": {
"tags": [
"0",
"2",
"4",
"6",
"Black",
"Blouse",
"DKNY",
"White"
]
}
},
{
"node": {
"tags": [
"0",
"2",
"4",
"6",
"Black",
"DKNY",
"Tee",
"White"
]
}
},
{
"node": {
"tags": [
"2",
"4",
"6",
"Black",
"DKNY",
"Dress"
]
}
},
{
"node": {
"tags": [
"0",
"2",
"Black",
"DKNY",
"Dress",
"White"
]
}
},
{
"node": {
"tags": [
"0",
"2",
"4",
"6",
"Black",
"DKNY",
"Heathered Dove",
"Tee",
"White"
]
}
},
{
"node": {
"tags": [
"0",
"2",
"6",
"Black",
"DKNY",
"Dress"
]
}
},
{
"node": {
"tags": [
"0",
"2",
"4",
"6",
"Black",
"DKNY",
"Dress",
"Red"
]
}
},
{
"node": {
"tags": [
"0",
"2",
"4",
"6",
"DKNY",
"Dress",
"Pulse"
]
}
},
{
"node": {
"tags": [
"0",
"2",
"4",
"DKNY",
"Heather Grey",
"Sweater",
"White"
]
}
}
]
}
}
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Can you try adding the "Search and Discovery" app, and then adding "tags" as something that's enabled? I could be wrong but I think it has to be enabled that way for it to work correctly. Let me know if that doesn't do it. |
Beta Was this translation helpful? Give feedback.
Can you try adding the "Search and Discovery" app, and then adding "tags" as something that's enabled? I could be wrong but I think it has to be enabled that way for it to work correctly. Let me know if that doesn't do it.