TransactionWithMutations

Type Alias: TransactionWithMutations<T, TOperation>

ts
type TransactionWithMutations<T, TOperation> = Transaction<T> & object;
type TransactionWithMutations<T, TOperation> = Transaction<T> & object;

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

Utility type for a Transaction with at least one mutation This is used internally by the Transaction.commit method

Type declaration

mutations

ts
mutations: NonEmptyArray<PendingMutation<T, TOperation>>;
mutations: NonEmptyArray<PendingMutation<T, TOperation>>;

Type Parameters

T extends object = Record<string, unknown>

TOperation extends OperationType = OperationType