Query Variants by Barocde Bug

Query Variants by Barocde Bug

DevJoe
Shopify Partner
1 0 0

I found a bug: If my filter barcode is a string or an integer, and my variant's barcode is also a string or an integer, the query returns the variants correctly. However, if the barcode is an Int64, it fails.

Here is my example query:


'{ productVariants(first: 2, query: "barcode:753152000649") { edges { node { id title barcode product { id title } inventoryItem { id } } } }}'

 

I can't adjust my barcodes. How to fix this?

Replies 0 (0)