Support for multiple with statements?

Is it possible to have multiple with statements?
const carriers = await tx
.with(carrierTaskCount)
.with(idleCarrierDriverCount)
const carriers = await tx
.with(carrierTaskCount)
.with(idleCarrierDriverCount)
typescript: Property 'with' does not exist on type '{ select: { (): PgSelectBuilder<undefined, "db">; <TSelection extends SelectedFields>(fields: TSelection): PgSelectBuilder<TSelection, "db">; }; }'.
typescript: Property 'with' does not exist on type '{ select: { (): PgSelectBuilder<undefined, "db">; <TSelection extends SelectedFields>(fields: TSelection): PgSelectBuilder<TSelection, "db">; }; }'.
1 Reply
Dan
Dan2y ago
.with accepts varargs
Want results from more Discord servers?
Add your server