composeSequential
composeSequential(
operations):Operation<unknown[]>
Defined in: packages/db/src/compose.ts:84
Runs multiple Operations sequentially and returns their results as an array.
This is a shorthand for the common compose pattern where operations are
simply awaited in order with no data dependencies between them:
// Before: verbosecompose([op1, op2], async (run1, run2) => { await run1({}); await run2({});});
// After: concisecomposeSequential([op1, op2]);Parameters
Section titled “Parameters”operations
Section titled “operations”Operation<unknown>[]
The operations to run in order.
Returns
Section titled “Returns”Operation<unknown[]>
A single Operation that runs all operations sequentially and returns their results.