TransactionConfig

Interface: TransactionConfig<T>

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

Type Parameters

T extends object = Record<string, unknown>

Properties

autoCommit?

ts
optional autoCommit: boolean;
optional autoCommit: boolean;

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


id?

ts
optional id: string;
optional id: string;

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

Unique identifier for the transaction


metadata?

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

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

Custom metadata to associate with the transaction


mutationFn

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

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

Our Partners
Electric
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.