Skip to main content
Version: v10.0.0

Condition

A filter condition. Tokens lists what it asks a backend for, as field:operator , and Eq the fields it sets with

eq at the top level. The types use both to check that a loader can serve the query.


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

Preview​

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

Structure​

Condition
NameTypeDescription
__eq
Eq

Type-only marker, never set at runtime

__tokens
Tokens

Type-only marker, never set at runtime

kind
condition
node
ExpressionNode