Home > @infiniteobjects/shopify-data-manager > AdminTypes > CollectionRule
Represents at rule that’s used to assign products to a collection.
Signature:
export interface CollectionRule
| Property | Modifiers | Type | Description |
|---|---|---|---|
| column | CollectionRuleColumn | `${CollectionRuleColumn}` | The attribute that the rule focuses on. For example, title or product_type. |
|
| condition | Scalars[‘String’][‘output’] | The value that the operator is applied to. For example, Hats. |
|
| conditionObject? | Maybe<CollectionRuleConditionObject> | (Optional) The value that the operator is applied to. | |
| relation | CollectionRuleRelation | `${CollectionRuleRelation}` | The type of operator that the rule is based on. For example, equals, contains, or not_equals. |