--- title: CollectionRuleConditionObject - GraphQL Admin description: Specifies object for the condition of the rule. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/unions/CollectionRuleConditionObject md: >- https://shopify.dev/docs/api/admin-graphql/unstable/unions/CollectionRuleConditionObject.md metadata: domain: admin --- # Collection​Rule​Condition​Object union Requires `read_products` access scope. Specifies object for the condition of the rule. ## Fields with this union * [Collection​Rule.conditionObject](https://shopify.dev/docs/api/admin-graphql/unstable/objects/CollectionRule#field-CollectionRule.fields.conditionObject) OBJECT Represents at rule that's used to assign products to a collection. *** ```graphql union CollectionRuleConditionObject = CollectionRuleCategoryCondition | CollectionRuleMetafieldCondition | CollectionRuleProductCategoryCondition | CollectionRuleTextCondition ```