eq
eq(
key,value):Predicate
Defined in: src/query/predicate.ts:55
Creates an equality predicate
Parameters
Section titled “Parameters”string
The key to compare
The value to compare
string | number
Returns
Section titled “Returns”The equality predicate
Example
Section titled “Example”const predicate = eq("name", "John")// result = { type: "eq", key: "name", value: "John" }