TransactionConfig

Interface: TransactionConfig<T>

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

Type Parameters

T

T extends object = Record<string, unknown>

Properties

autoCommit?

ts
optional autoCommit: boolean;
optional autoCommit: boolean;

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


id?

ts
optional id: string;
optional id: string;

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

Unique identifier for the transaction


metadata?

ts
optional metadata: Record<string, unknown>;
optional metadata: Record<string, unknown>;

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

Custom metadata to associate with the transaction


mutationFn

ts
mutationFn: MutationFn<T>;
mutationFn: MutationFn<T>;

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

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.