Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Graphql and inventoryItems with InventoryLevel of Null

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)