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"
Source
Package
Preview
type Condition<Tokens,Eq> = {
__eq?: Eq;
__tokens?: Tokens;
kind: condition;
node: ExpressionNode;
}
Structure
Condition
| Name | Type | Description |
|---|---|---|
| __eq | | Type-only marker, never set at runtime |
| __tokens | | Type-only marker, never set at runtime |
| kind | | |
| node | |
