Skip to main content
Version: v10.0.0

Notation

How a backend writes every operator and order, shipped by an adapter preset such as firestoreCollection . A loader with a notation can send any condition and order on any field.


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

Preview​

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

Structure​

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