---
title: "CollectionRuleSet"
description: >
  The rule set that determine which kind of products could be contained in the current collection.
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/collection-rule-set'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/collection-rule-set.md'
---
# CollectionRuleSet

The rule set that determine which kind of products could be contained in the current collection.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`CollectionRuleSet`

## Fields

* `appliedDisjunctively`

  [Boolean!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/boolean.md)

  if it's true, the products must meet any or all rules to be contained in the current collection. If it's false, the products must meet all rules to be contained in the current collection.

* `rules`

  [[CollectionRule]](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/collection-rule.md)

  The rules which are used for assigning products to collections.

## Schema Definition

```graphql
type CollectionRuleSet { 
	appliedDisjunctively: Boolean!
	rules: [CollectionRule] 
}
```

## Field from

* [Collection](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/collection.md).ruleSet

  The rules that specify whether a product is included in a smart collection.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

