Skip to content

whereToNode

whereToNode<S>(where): VexWhereNode<S>

Defined in: packages/core/src/db/queryArgs.ts:181

Converts a where builder callback to its plain VexWhereNode form — for saving a filter authored in code (a default list filter, a seeded saved view) without hand-building the tree.

S extends string

Collection slug the callback was written against.

(q) => ConstraintResult

A builder callback, the same one find / search accept.

VexWhereNode<S>

The equivalent plain node.