# QueryOperator (@salmonui/query-builder)

> The QueryOperator interface of @salmonui/query-builder: A custom operator: labels and types here; evaluation through filterRows / the Data Grid filter module, SQL / Mongo through the converter hooks.

Canonical: https://salmonui.dev/docs/reference/query-builder/QueryOperator

```ts
import type { QueryOperator } from '@salmonui/query-builder';
```

Entry index: https://salmonui.dev/docs/reference/query-builder (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/query-builder.md).

## Reference

Kind: interface

```ts
interface QueryOperator {
    readonly name: string;
    readonly label?: string | undefined;
    readonly types?: readonly QueryFieldType[] | undefined;
    readonly valueless?: boolean | undefined;
    readonly list?: boolean | undefined;
    readonly evaluate?: ((cellValue: unknown, filterValue: Json, ctx: {
        readonly matchCase: boolean;
        readonly ignoreAccents: boolean;
    }) => boolean) | undefined;
}
```

A custom operator: labels and types here; evaluation through `filterRows` / the Data Grid filter module, SQL / Mongo through the converter hooks.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `name` | `readonly name: string;` |  |  |
| `label` | `readonly label?: string \| undefined;` | optional |  |
| `types` | `readonly types?: readonly QueryFieldType[] \| undefined;` | optional | Field types that offer it; default every type. |
| `valueless` | `readonly valueless?: boolean \| undefined;` | optional | The operator takes no value. |
| `list` | `readonly list?: boolean \| undefined;` | optional | The value is a list (like `in`). |
| `evaluate` | `readonly evaluate?: ((cellValue: unknown, filterValue: Json, ctx: {     readonly matchCase: boolean;     readonly ignoreAccents: boolean; }) => boolean) \| undefined;` | optional | Row test for `filterRows` (the core custom operator signature). |
