A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Trying to build an app that pulls all of the inventory for a particular location.
{
inventoryItems(first:75, query: "tracked:true", reverse: true)
{
edges {
node {
id
sku
tracked
updatedAt
createdAt
inventoryLevel(locationId: "gid://shopify/Location/111111") {
id
available
incoming
location {
id
}
}
variant {
displayName
}
}
cursor
}
pageInfo{
hasNextPage
hasPreviousPage
}
}
}
When making such a query, I am getting items that have inventoryLevel = null.
Is there a way to filter for only InventoryItem that has inventorylevel that has results?