Skip to main content
Version: v10.0.0

DbNotation

The db-wide notation that loaders use for operators and orders they declare with true


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

Preview​

type Notation = {
orderBy?: (field: string, direction: SortDirection) => AnyRequestPatch;
where?: Partial<Record<ComparisonOperator, (field: string, value: unknown) => AnyRequestPatch>>;
}

Structure​

DbNotation
NameTypeDescription
where
Partial<Record<ComparisonOperator, (field: string, value: unknown) => AnyRequestPatch>>
orderBy
(field: string, direction: SortDirection) => AnyRequestPatch