---
title: Expression type | Wartiva GraphQL API
description: An nftables expression representing a single operation or condition within a chain rule. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `Expression` type

An nftables expression representing a single operation or condition within a chain rule.

## Fields

| Field Name | Description |
|---|---|
| `type` - [`ChainExpressionType!`](https://wartiva.com/api-docs/types/chain-expression-type.html) | The specific type of the expression, which determines how 'data' is interpreted. |
| `data` - [`ChainExpression!`](https://wartiva.com/api-docs/types/chain-expression.html) | The actual data or configuration for this expression, whose structure depends on the 'type' field. |

## Used by

- [`ChainRule`](https://wartiva.com/api-docs/types/chain-rule.html) type: Represents an individual rule within an nftables chain.

## Example

### Example

```json
{"type": "COUNTER", "data": CtExpression}

```

---

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