ball

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ball

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • nkt