---
title: CollectionRuleConditionObject - GraphQL Admin
description: Specifies object for the condition of the rule.
api_version: 2026-10
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
api_name: admin
api_type: graphql
type: union
---

# 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
```
