I am having an issue with a product query. Is returning: Field ‘measurement’ doesn’t exist on type ‘InventoryItem’
Any idea why?
This is my product query:
products(first: 10) {
edges {
node {
id
title
productType
tags
vendor
images (first: 5) {
edges {
node {
url
}
}
}
variants(first: 100) {
edges {
node {
id
title
image {
url
}
inventoryItem {
id
countryCodeOfOrigin
harmonizedSystemCode
measurement {
value
unit
}
}
sku
barcode
weight
weightUnit
price
requiresShipping
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}