TanStack

TransactionConfig

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

Type Parameters

T

T extends object = Record<string, unknown>

Properties

autoCommit?

ts
optional autoCommit: boolean;

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


id?

ts
optional id: string;

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

Unique identifier for the transaction


metadata?

ts
optional metadata: Record<string, unknown>;

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

Custom metadata to associate with the transaction


mutationFn

ts
mutationFn: MutationFn<T>;

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