MongoDb Data Mapper
What ?
A data mapper is an abstraction on top of a persistence mechanism. It works as a bridge between domain entities and a data store.
Why ?
MongoDb Data Mapper
is easier to test alternative to popular Active Record
-based ORMs. It achieves so by exposing a minimalist (therefore trivial to mock) API and providing set-up/tear-down methods.
How ?
const coroutine = ;const mongoDataMapper = ; const petsDataMapper = ; ;
Using with your transform
-s:
const coroutine = ;const mongoDataMapper = ; const student = ; const studentsDataMapper = ; ;