--- title: CollectionRuleConditionObject - GraphQL Admin description: Specifies object for the condition of the rule. api_version: 2026-04 api_name: admin type: union api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/unions/collectionruleconditionobject md: https://shopify.dev/docs/api/admin-graphql/latest/unions/collectionruleconditionobject.md --- # 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/latest/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 ```