---
title: NftLimitType enum | Wartiva GraphQL API
description: NftLimitType specifies whether the rate limit applies to packets or bytes. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/nft-limit-type.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL enum

# `NftLimitType` enum

NftLimitType specifies whether the rate limit applies to packets or bytes.

## Values

| Enum Value | Description |
|---|---|
| `PACKETS` | Limit based on the number of packets. |
| `BYTES` | Limit based on the number of bytes. |

## Used by

- [`LimitExpression`](https://wartiva.com/api-docs/types/limit-expression.html) type: Limit represents an nftables expression for rate limiting packets or bytes.

## Example

### Example

```json
"PACKETS"

```

---

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