---
title: RuleApplyToOption type | Wartiva GraphQL API
description: A single key/operator/value constraint that narrows which objects a rule applies to. A rule applies to an object only when every option is satisfied.
url: https://wartiva.com/api-docs/types/rule-apply-to-option.html
updated: 2026-10-07
---

Policies and findings · GraphQL type

# `RuleApplyToOption` type

A single key/operator/value constraint that narrows which objects a rule applies to. A rule applies to an object only when every option is satisfied.

## Fields

| Field Name | Description |
|---|---|
| `key` - [`RuleApplyToOptionKey!`](https://wartiva.com/api-docs/types/rule-apply-to-option-key.html) | The option key identifying which attribute to constrain. |
| `operator` - [`RuleApplyToOperator!`](https://wartiva.com/api-docs/types/rule-apply-to-operator.html) | The comparison applied between value and the object's attribute. |
| `value` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The value the object's attribute is compared against. A comma-separated list for IN and NOT_IN. |

## Used by

- [`Rule`](https://wartiva.com/api-docs/types/rule.html) type: A policy rule evaluated against graph objects.

## Example

### Example

```json
{
  "key": "OS",
  "operator": "EQUALS",
  "value": "xyz789"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
