---
title: RuleFunction union | Wartiva GraphQL API
description: A polymorphic rule function that implements the rule logic. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/rule-function.html
updated: 2026-10-07
---

Policies and findings · GraphQL union

# `RuleFunction` union

A polymorphic rule function that implements the rule logic.

## Possible types

- [`RuleFunctionOpa`](https://wartiva.com/api-docs/types/rule-function-opa.html)

## Used by

- [`RuleBodyConfiguration`](https://wartiva.com/api-docs/types/rule-body-configuration.html) type: The body of a CONFIGURATION rule.

## Example

### Example

```json
RuleFunctionOpa

```

---

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