mongo-entity

0.0.3-5 • Public • Published

mongo-entity

Mongo entity framework.

Usage

install:

npm install mongo-entity

configure:

in express app configuration add addLocals middleware and decorate middleware:

app.use(middlewares.addLocals);
app.use(function(req, res, next){
    req.mongoRef = mongoDB;
    //your decorator here...
    next();
});

While mongoDB is your mongo-skin object.

Readme

Keywords

none

Package Sidebar

Install

npm i mongo-entity

Weekly Downloads

1

Version

0.0.3-5

License

none

Last publish

Collaborators

  • ddablo