Skip to main content
Version: v10.0.0

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"

Preview​

type Transaction = Promise<MutationResult> & { id: string };

Structure​

Transaction
NameTypeDescription
id
string