Mapper Read CRUDRepo
constructor(to: ReadCRUDRepo<ToRegistered, ToId>, mapper: MapperRepo<FromId, FromRegistered, ToId, ToRegistered>)(source)
Parameters
to
The underlying repository to wrap
mapper
The mapper that defines the bidirectional type conversions
Type Parameters
From Id
The external ID type exposed by this wrapper
From Registered
The external object type exposed by this wrapper
To Id
The internal ID type used by the underlying repository
To Registered
The internal object type used by the underlying repository