---
title: ObjRefExpression type | Wartiva GraphQL API
description: ObjRefExpression represents an nftables expression for referencing other objects. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/obj-ref-expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `ObjRefExpression` type

ObjRefExpression represents an nftables expression for referencing other objects (like sets, maps, or other named entities) within the nftables configuration. This allows for modularity and reusing common configurations.

## Fields

| Field Name | Description |
|---|---|
| `type` - [`ObjRefType!`](https://wartiva.com/api-docs/types/obj-ref-type.html) | The type of object reference being made. |
| `name` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The name of the object being referenced. This is used for `IMM_NAME` references. |
| `sreg` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | The source register holding the key or data to be used for the object reference. This is used for `SET_SREG` references. |
| `setName` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The name of the set to which the reference applies. This is used for `SET_NAME` references. |
| `setId` - [`Uint32!`](https://wartiva.com/api-docs/types/uint32.html) | The internal numeric ID of the set to which the reference applies, unique within the current transaction. This is used for `SET_ID` references. |

## 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
{
  "type": "IMM_TYPE",
  "name": "abc123",
  "sreg": "VERDICT",
  "setName": "abc123",
  "setId": "1073741824"
}

```

---

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