Skip to main content
Version: v10.0.0

or

Matches rows that match at least one condition. It runs on the rows the db holds.


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

Parameters​

or(...conditions: readonly Condition<string, string>[])
Parameters
NameTypeDescription
conditions
readonly Condition<string, string>[]

Returns​

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

Type-only marker, never set at runtime

__tokens
Tokens

Type-only marker, never set at runtime

kind
condition
node
ExpressionNode