---
title: MatchExpression type | Wartiva GraphQL API
description: MatchExpression represents an nftables expression that leverages existing kernel match modules (often from iptables/xtables compatibility).
url: https://wartiva.com/api-docs/types/match-expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `MatchExpression` type

MatchExpression represents an nftables expression that leverages existing kernel match modules (often from iptables/xtables compatibility). It allows for specialized packet matching logic not directly implemented as native nftables expressions.

## Fields

| Field Name | Description |
|---|---|
| `name` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The name of the xtables match module to invoke (e.g., "addrtype", "state", "limit"). |
| `rev` - [`Uint32!`](https://wartiva.com/api-docs/types/uint32.html) | The revision number of the xtables match module. Different revisions might have different parameter structures. |
| `xtablesInfo` - [`XtablesInformation`](https://wartiva.com/api-docs/types/xtables-information.html) | The specific configuration parameters for the xtables match module, whose structure depends on the 'name' and 'rev' fields. |

## Used by

- [`ChainExpression`](https://wartiva.com/api-docs/types/chain-expression.html) union: A union of all possible nftables chain expression types.

## Example

### Example

```json
{
  "name": "xyz789",
  "rev": "1073741824",
  "xtablesInfo": XtablesInformation
}

```

---

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