# CollectionRuleConditions - admin-graphql - OBJECT Version: 2024-07 ## Description This object defines all columns and allowed relations that can be used in rules for smart collections to automatically include the matching products. ### Access Scopes `read_products` access scope. ## Fields * [allowedRelations](/docs/api/admin-graphql/2024-07/enums/CollectionRuleRelation): CollectionRuleRelation! - Allowed relations of the rule. * [defaultRelation](/docs/api/admin-graphql/2024-07/enums/CollectionRuleRelation): CollectionRuleRelation! - Most commonly used relation for this rule. * [ruleObject](/docs/api/admin-graphql/2024-07/unions/CollectionRuleConditionsRuleObject): CollectionRuleConditionsRuleObject - Additional attributes defining the rule. * [ruleType](/docs/api/admin-graphql/2024-07/enums/CollectionRuleColumn): CollectionRuleColumn! - Type of the rule. ## Connections ## Related queries * [collectionRulesConditions](/docs/api/admin-graphql/2024-07/queries/collectionRulesConditions) Lists all rules that can be used to create smart collections. ## Related mutations ## Related Unions ## Examples