# exists

> **exists**(`name`): [`ExistsNode`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/query/type-aliases/existsnode/)

Defined in: [src/query/expression.ts:311](https://github.com/Arkiv-Network/arkiv-sdk-js/blob/488e08c3687cc5cfaf5dd8ab0fe0f7fed40930bb/src/query/expression.ts#L311)

The attribute is set, with any type.

## Parameters

### name

`string`

## Returns

[`ExistsNode`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/query/type-aliases/existsnode/)

## Throws

If given a system attribute — every entity has all of them, so
the test would be a constant.

## Example

```ts
exists("reviewedBy")        // EXISTS(reviewedBy)
not(exists("closedAt"))     // NOT EXISTS(closedAt)
```