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"
Source
Package
Preview
type Notation = {
orderBy?: (field: string, direction: SortDirection) => AnyRequestPatch;
where?: Partial<Record<ComparisonOperator, (field: string, value: unknown) => AnyRequestPatch>>;
}
Structure
Notation
| Name | Type | Description |
|---|---|---|
| where | | |
| orderBy | |
