Hello, I’m using this GraphQL query (version: 2021-07) to find variants with a barcode.
However, it’s not finding any variants, even though I know and have checked that about 10 variants in my account with barcodes assigned.
it had been working initially but now has stopped working, it sometimes gives result and gives empty response sometimes.
So I don’t know if there are some stale caches or indexing issues in Shopify. Can anyone help clarify what this issue is?
GraphQL sample →
{
productVariants(first: 1, query: "barcode:#{barcode}") {
edges {
node {
id
barcode
image {
id
}
inventoryItem {
id
}
product {
id
featuredImage {
id
}
}
}
}
}
}