Hi,
I downloaded a Flow Template (titled “Add free (discounted 100%) item to new orders”) with a query that isn’t functioning:
query{
getProductVariantData {
id
inventoryItem {
inventoryLevels {
available
location {
id
name
}
}
}
}
}
Available is apparently deprecated so I tried this instead, but it’s not running.
query{
getProductVariantData {
id
inventoryItem {
inventoryLevels(locationId: $locationId) {
quantities (names: “available”) {
quantity
name
}
}
}
Can anyone anyone advise on how to fix it?