Skip to main content
Version: v10.0.0

IngestOptions


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

Preview​

type IngestOptions<Req,Mapped,Type> = {
rows?: (response: ExtractResponseType<Req>) => readonly Mapped[];
type?: Type & IngestType;
}

Structure​

IngestOptions
NameTypeDescription
type
Type & IngestType

insert writes complete rows, update changes only rows the collection holds

rows
(response: ExtractResponseType<Req>) => readonly Mapped[]

Reads rows from the response, as a loader's rows does