Hello!
I’m curious if it is possible to run a GraphQL query on the products or warehouse products endpoint that returns a list of SKUs with their corresponding on hand and available quantities for only products that have a quantity > 0?
I’m working with a client that has > 25k total products in the system that are active but only roughly 8k have quantity on hand/available. Filtering the query to only return the 8k products with available inventory will be much more efficient.
Here’s the query that i’m currently leveraging:
query {
warehouse_products(active: true) {
request_id
complexity
data (after: "<%cursor%>") {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
active
warehouse_identifier
on_hand
available
product {
sku
}
}
}
}
}
}