CollectionConfig
Import
import { CollectionConfig } from "@hyper-fetch/db"
Source
Package
Preview
type CollectionConfig = {
ingests: readonly IngestConfig[];
key: string;
loaders: readonly LoaderConfig[];
mutations: { delete?: MutationConfig; insert?: MutationConfig; update?: MutationConfig };
normalize?: readonly NormalizeConfig[];
schema?: StandardSchemaV1;
syncs: readonly SyncConfig[];
validate: client | all;
version?: string;
}
Structure
CollectionConfig
| Name | Type | Description |
|---|---|---|
| ingests | | |
| key | | |
| loaders | | |
| mutations | | |
| normalize | | Nested rows that complete writes carry into other collections |
| schema | | |
| syncs | | |
| validate | | |
| version | |
