Skip to main content
Anchor to CollectionSourceInclusionConditionProductTagInput

CollectionSourceInclusionConditionProductTagInput

input_object

The input fields for a condition based on product tags.

•CollectionConditionMatchType!
non-null

Whether to match any or all of the values.

•CollectionSourceInclusionConditionProductTagRelation!
non-null

The relationship between the product tag and the condition values.

•[String!]!
non-null

The tag values 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?