# toWherePredicate (@salmonui/data/json)

> The toWherePredicate function of @salmonui/data/json: Top level: conditions on the same column fold left to right by their predicate; columns and groups are ANDed (Data Grid engine filter semantics).

Canonical: https://salmonui.dev/docs/reference/data/json/toWherePredicate

```ts
import { toWherePredicate } from '@salmonui/data/json';
```

Also exported from `@salmonui/data`.

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

## Reference

Kind: function

```ts
function toWherePredicate(filters: readonly FilterEntry[], fieldOf?: (id: string) => string): WirePredicate | undefined;
```

Top level: conditions on the same column fold left to right by their
`predicate`; columns and groups are ANDed (Data Grid engine filter semantics).
