Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

TransactionConfig.md

58 lines1.1 KB

Interface: TransactionConfig<T>

Defined in: packages/db/src/types.ts:174

Type Parameters

T

T extends object = Record<string, unknown>

Properties

autoCommit?

optional autoCommit: boolean;

Defined in: packages/db/src/types.ts:178


id?

optional id: string;

Defined in: packages/db/src/types.ts:176

Unique identifier for the transaction


metadata?

optional metadata: Record<string, unknown>;

Defined in: packages/db/src/types.ts:181

Custom metadata to associate with the transaction


mutationFn

mutationFn: MutationFn<T>;

Defined in: packages/db/src/types.ts:179