0.1.0 • Published 9 years ago

ball v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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
})

License

MIT

0.1.0

9 years ago

0.0.1

9 years ago