CollectionRuleConditions object
Collections may use rules to automatically include the matching products. This defines restrictions for a type of rule.
Required access
read_products
access scope.
On this page
Fields
- allowedRelations (
[[CollectionRuleRelation!]!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/collectionrulerelation)
)
Allowed relations of the rule. - defaultRelation (
[CollectionRuleRelation!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/collectionrulerelation)
)
Most commonly used relation for this rule. - ruleType (
[CollectionRuleColumn!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/collectionrulecolumn)
)
Type of the rule.
Types that return CollectionRuleConditions
[QueryRoot.collectionRulesConditions](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#collectionrulesconditions-2021-01)