Transaction
A pending write: a promise of the write's result that never rejects, with the write's
id
. The
id
, or the
transaction itself, can be passed to
dependsOn
of a later write, so the later write is dropped when this one is
rejected.
Import
import { Transaction } from "@hyper-fetch/db"
Source
Package
Preview
type Transaction = Promise<MutationResult> & { id: string };
Structure
Transaction
| Name | Type | Description |
|---|---|---|
| id | |
