CollectionOptions
Import
import { CollectionOptions } from "@hyper-fetch/db"
Source
Package
Preview
type CollectionOptions<Row,KeyField> = {
key: KeyField;
validate?: client | all;
version?: Exclude<keyof Row & string, KeyField>;
}
Structure
CollectionOptions
| Name | Type | Description |
|---|---|---|
| key | | The field that identifies a row |
| validate | |
|
| version | | A field that grows with every change on the server. Writes never replace fields with a newer version. |
