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
bloberenober
bloberenober15mo ago
.with accepts varargs