Skip to main content
Anchor to CollectionRuleConditions

CollectionRuleConditions

object

Requires read_products access scope.

Defines the available columns and relationships that can be used when creating rules for collections. This provides the schema for building automated collection logic based on product attributes.

For example, merchants can create rules like "product type equals 'Shirts'" or "vendor contains 'Nike'" using the conditions defined in this object to automatically populate collections.

Use CollectionRuleConditions to:

  • Discovering valid field options for collection rule interfaces
  • Understanding which conditions are available for automated collections
  • Exploring available product attributes for collection automation
  • Learning about proper field relationships for rule implementation

The conditions define which product fields can be used in collection rules and what types of comparisons are allowed for each field.

Learn more about collections with conditions.

•[CollectionRuleRelation!]!
non-null

Allowed relations of the rule.

Show enum values
•CollectionRuleRelation!
non-null

Most commonly used relation for this rule.

Show enum values
•CollectionRuleConditionsRuleObject

Additional attributes defining the rule.

Show union types
•CollectionRuleColumn!
non-null

Type of the rule.

Show enum values

Was this section helpful?

•query

Lists all rules that can be used to create collections.

Show fields

Was this section helpful?