# CollectionRuleInput - admin-graphql - INPUT_OBJECT Version: 2024-10 ## Description The input fields for a rule to associate with a collection. ### Access Scopes ## Fields * [column](/docs/api/admin-graphql/2024-10/enums/CollectionRuleColumn): CollectionRuleColumn! - The attribute that the rule focuses on. For example, `title` or `product_type`. * [condition](/docs/api/admin-graphql/2024-10/scalars/String): String! - The value that the operator is applied to. For example, `Hats`. * [conditionObjectId](/docs/api/admin-graphql/2024-10/scalars/ID): ID - The object ID that points to additional attributes for the collection rule. This is only required when using metafield definition rules. * [relation](/docs/api/admin-graphql/2024-10/enums/CollectionRuleRelation): CollectionRuleRelation! - The type of operator that the rule is based on. For example, `equals`, `contains`, or `not_equals`. ## Input objects with this input object * [CollectionRuleSetInput](/docs/api/admin-graphql/2024-10/input-objects/CollectionRuleSetInput) ## Examples