Mapper Write CRUDRepo
constructor(to: WriteCRUDRepo<ToRegistered, ToId, ToInput>, mapper: MapperRepo<FromId, FromRegistered, ToId, ToRegistered>, inputMapper: SimpleSuspendableMapper<FromInput, ToInput>)(source)
Parameters
to
The underlying repository to wrap
mapper
The mapper for keys and values
input Mapper
The mapper for input types
Type Parameters
From Id
The external ID type
From Registered
The external object type for read operations
From Input
The external input type for write operations
To Id
The internal ID type
To Registered
The internal object type for read operations
To Input
The internal input type for write operations