---
title: RuleBodySearch type | Wartiva GraphQL API
description: The body of a SEARCH rule: the graph search whose matches the rule flags. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/rule-body-search.html
updated: 2026-10-07
---

Policies and findings · GraphQL type

# `RuleBodySearch` type

The body of a SEARCH rule: the graph search whose matches the rule flags.

Each time the rule runs, every object the search finds gets a finding, and every other object the rule applies to is cleared.

## Fields

| Field Name | Description |
|---|---|
| `query` - [`GraphSearchQueryInputPayload!`](https://wartiva.com/api-docs/types/graph-search-query-input-payload.html) | The graph search the rule runs, rooted at the object type the rule applies to. Its select flags and columns are ignored: the rule needs only which objects match. |

## Used by

- [`RuleBody`](https://wartiva.com/api-docs/types/rule-body.html) union: A polymorphic body for a rule type.
- [`RuleType`](https://wartiva.com/api-docs/types/rule-type.html) enum: Describes how a rule gathers the input its function evaluates.

## Example

### Example

```json
{"query": GraphSearchQueryInputPayload}

```

---

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