# neq

> **neq**(`key`, `value`): [`Predicate`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/query/type-aliases/predicate/)

Defined in: [src/query/predicate.ts:69](https://github.com/Arkiv-Network/arkiv-sdk-js/blob/18cbef7aeaa31d3dee70f3cba35fcd04e001d31b/src/query/predicate.ts#L69)

Creates a not equal predicate

## Parameters

### key

`string`

The key to compare

### value

The value to compare

`string` | `number`

## Returns

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

The not equal predicate

## Example

```ts
const predicate = neq("name", "John")
// result = { type: "neq", key: "name", value: "John" }
```