FieldWhereDeclaration
How one field's operators reach the backend.
true
uses the db-wide default notation.
Import
import { FieldWhereDeclaration } from "@hyper-fetch/db"
Source
Package
Preview
type FieldWhereDeclaration<Value,Req> = { eq?: ((value: Value) => RequestPatch<Req> | true); gt?: ((value: NonNullable<Value>) => RequestPatch<Req> | true); gte?: ((value: NonNullable<Value>) => RequestPatch<Req> | true); inArray?: ((values: Value[]) => RequestPatch<Req> | true); lt?: ((value: NonNullable<Value>) => RequestPatch<Req> | true); lte?: ((value: NonNullable<Value>) => RequestPatch<Req> | true); required?: true } & {};
Structure
FieldWhereDeclaration
| Name | Type | Description |
|---|---|---|
| eq | | |
| gt | | |
| gte | | |
| inArray | | |
| lt | | |
| lte | | |
| required | | The endpoint cannot work without this filter, such as
|
