Graphql and inventoryItems with InventoryLevel of Null

jshao
New Member
4 0 0

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?

Replies 0 (0)