---
title: RuleBodyThresholdInput input | Wartiva GraphQL API
description: Input variant of RuleBodyThreshold. Wartiva GraphQL API reference with arguments, fields, and examples. Browse related operations and types.
url: https://wartiva.com/api-docs/types/rule-body-threshold-input.html
updated: 2026-10-07
---

Policies and findings · GraphQL input

# `RuleBodyThresholdInput` input

Input variant of [RuleBodyThreshold](https://wartiva.com/api-docs/types/rule-body-threshold.html).

## Fields

| Input Field | Description |
|---|---|
| `query` - [`GraphSearchQueryInput!`](https://wartiva.com/api-docs/types/graph-search-query-input.html) | The objects the rule judges. Its object type must be the one the rule applies to, and no node may name a specific object: the rule runs in every organization. Select flags and columns are ignored. |
| `count` - [`[GraphRelationshipSearchInput!]!`](https://wartiva.com/api-docs/types/graph-relationship-search-input.html) | One to four hops from each judged object to the objects counted, each walked from the object the previous hop reached. No hop may be negated or name a specific object. |
| `minCount` - [`Int`](https://wartiva.com/api-docs/types/int.html) | The fewest objects allowed. Set minCount, maxCount, or both; neither may be negative, and minCount can't exceed maxCount. |
| `maxCount` - [`Int`](https://wartiva.com/api-docs/types/int.html) | The most objects allowed. |

## Used by

- [`RuleBodyInput`](https://wartiva.com/api-docs/types/rule-body-input.html) input: One-of input mirroring the RuleBody union.

## Example

### Example

```json
{
  "query": GraphSearchQueryInput,
  "count": [GraphRelationshipSearchInput],
  "minCount": 987,
  "maxCount": 987
}

```

---

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