Variable: MapPipe
Variable: MapPipe API reference from @automapper/nestjs.
constMapPipe: <TSource,TDestination>(from,to,options?) =>Type<PipeTransform>
Defined in: packages/nestjs/src/lib/map.pipe.ts:22
Maps request bodies or query values with synchronous or asynchronous mappings. Promise-returning member resolvers and callbacks are awaited, and mapping errors propagate through Nest’s request pipeline.
Type Parameters
TSource
TSource extends Dictionary<TSource>
TDestination
TDestination extends Dictionary<TDestination>
Parameters
from
ModelIdentifier<TSource>
to
ModelIdentifier<TDestination>
options?
object & MapOptions<TSource, TDestination>
Returns
Type<PipeTransform>