Development discussions around Shopify APIs
Hi,
I have a GraphiQL statement - where I am interested in getting the inventory details for just products that we track.
But the query: "tracked:true" is being ignored. Probably a syntax issue - can anybody help?
{
inventoryItems(first:10, query:"tracked:true") {
edges {
node {
id
sku
tracked
inventoryLevel(locationId: "gid://shopify/Location/id") {
available
id
updatedAt
}
variant {
displayName
barcode
product {
title
}
}
}
}
}
}
Solved! Go to the solution
This is an accepted solution.
Usually that's what I wind up doing if I can't narrow things down enough with query parameters. Not the most efficient solution but it works!
Looking through the API docs, or the interactive pop-up help in the GraphiQL app, I don't see this field being part of the provided query parameters. Confirmed below.
so we pull all the data - then filter within our own application - is that the only approach?
This is an accepted solution.
Usually that's what I wind up doing if I can't narrow things down enough with query parameters. Not the most efficient solution but it works!
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By