Update "Hide out-of-stock products" query to filter by inventory level
Closed this issue · 1 comments
isaacbowen commented
https://tasks.mechanic.dev/hide-out-of-stock-products
Shopify's QueryRoot.products
connection supports filtering by inventory_total
(docs)! Was this always the case and I just didn't know it? 🤪
The change is tiny but significant for query efficiency, I'm just pressed for time at the moment so it's easier to record this for later:
For copy/paste purposes:
query: "inventory_total:<={{ options.out_of_stock_inventory_quantity__number_required }}"
isaacbowen commented
With apologies to the community, the following link is for our internal tracking purposes: