Skip to main content
Anchor to CollectionSourceInclusionConditionVariantWeightInput

CollectionSourceInclusionConditionVariantWeightInput

input_object

The input fields for a condition based on variant weights.

•CollectionSourceInclusionConditionVariantWeightRelation!
non-null

The relationship between the variant weight and the condition value.

•WeightInput!
required

The variant weight 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, metafieldDecimal, metafieldString, metafieldStringList, metafieldMetaobject, metafieldMetaobjectList, and either metafieldInteger or metafieldInt for integer metafields. Use metafieldInteger before API version 2026-10 and metafieldInt from 2026-10 onward. metafieldInteger is deprecated as of 2026-10 and removed as of 2027-01.

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?