Skip to main content
Version: v10.0.0

and

Matches rows that match every condition. Top-level and is where the db splits a query: the conditions a loader declares are sent to the backend and the rest run on the rows the db holds.


Import
import { and } from "@hyper-fetch/db"

Parameters​

and<Conditions>(...conditions: Conditions)
Parameters
NameTypeDescription
conditions
Conditions

Returns​

type Condition<Tokens,Eq> = {
__eq?: Eq;
__tokens?: Tokens;
kind: condition;
node: ExpressionNode;
}
and
NameTypeDescription
__eq
Eq

Type-only marker, never set at runtime

__tokens
Tokens

Type-only marker, never set at runtime

kind
condition
node
ExpressionNode