Created
October 17, 2020 21:21
-
-
Save lakshyabatman/b1161f7cf8dacbe01d5bcb7b46563ada to your computer and use it in GitHub Desktop.
User repository class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserRepository { | |
constructor() { | |
this.userModel = userModel; | |
} | |
getOne(id: String) { | |
// ..db calls!! | |
} | |
getAll() : UserEntity { | |
// ...db calls!! | |
//Map user document to UserEntity | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment