Skip to main content
input_object

The input fields for a rule to associate with a collection.

•CollectionRuleColumn!non-null

The attribute that the rule focuses on. For example, title or product_type.

•String!non-null

The value that the operator is applied to. For example, Hats.

•ID

The object ID that points to additional attributes for the collection rule. This is only required when using metafield definition rules.

•CollectionRuleRelation!non-null

The type of operator that the rule is based on. For example, equals, contains, or not_equals.


Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

•INPUT OBJECT

The rules used to assign products to the collection.


Was this section helpful?