ball
v0.1.0
Published
MongoDB ODM
Downloads
13
Readme
Ball
Simple MongoDB ODM
Usage
const {Ball} = require('ball');
let db = new Ball('mongodb://localhost/db');
class User {
getFullName() {
return `${this.firstName} ${this.secondName}`;
}
}
db.find({}).map((user) => {
console.log({
fullName: user.getFullName()
});
}).catch((err) => {
// error handling
})