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"
Source
Package
Preview
type TransactionWrite = {
collection: string;
key: RowKey;
op: MutationOperation;
values: Record<string, unknown>;
}
Structure
TransactionWrite
| Name | Type | Description |
|---|---|---|
| collection | | |
| key | | |
| op | | |
| values | | The complete row of an insert, or the changed fields of an update. Empty for a delete. |
