Home > @infiniteobjects/shopify-data-manager > AdminTypes > CollectionRuleInput
The input fields for a rule to associate with a collection.
Signature:
export interface CollectionRuleInput
| Property | Modifiers | Type | Description |
|---|---|---|---|
| column | CollectionRuleColumn | `${CollectionRuleColumn}` | The attribute that the rule focuses on. For example, title or product_type. |
|
| condition | Scalars[‘String’][‘input’] | The value that the operator is applied to. For example, Hats. |
|
| conditionObjectId? | InputMaybe<Scalars[‘ID’][‘input’]> | (Optional) The object ID that points to additional attributes for the collection rule. This is only required when using metafield definition rules. | |
| relation | CollectionRuleRelation | `${CollectionRuleRelation}` | The type of operator that the rule is based on. For example, equals, contains, or not_equals. |