Skip to main content
Anchor to CollectionSourceInclusionConditionVariantInventoryInput

CollectionSourceInclusionConditionVariantInventoryInput

input_object

The input fields for a condition based on variant inventory quantities.

•CollectionSourceInclusionConditionVariantInventoryRelation!
non-null

The relationship between the variant inventory and the condition value.

•Int!
non-null

The variant inventory quantity to match against.


Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

•INPUT OBJECT

A condition that determines which products are included in a collection.

Available condition types, grouped by what they filter on:

  • Product attributes: productTag, productTitle, productType, productVendor, productStatus, productCategory.
  • Variant attributes: variantTitle, variantPrice, variantCompareAtPrice, variantInventory, variantWeight.
  • Pricing: isPriceReduced.
  • Metafields: metafieldBoolean, metafieldInteger, metafieldDecimal, metafieldString, metafieldStringList, metafieldMetaobject, metafieldMetaobjectList.

Each condition type specifies its own relation (for example, EQUALS, CONTAINS, TAGGED_WITH) and value shape. Combine multiple conditions in a single source's inclusion.conditions list and use the source's matchType to require that products match ANY or ALL of them.


Was this section helpful?