Skip to main content
Version: v10.0.0

TransactionWrite

One write of a transaction, as a transaction's mutationFn receives it and the outbox keeps it


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

Preview​

type TransactionWrite = {
collection: string;
key: RowKey;
op: MutationOperation;
values: Record<string, unknown>;
}

Structure​

TransactionWrite
NameTypeDescription
collection
string
key
RowKey
op
MutationOperation
values
Record<string, unknown>

The complete row of an insert, or the changed fields of an update. Empty for a delete.