This package has been deprecated
Author message:
No longer maintained.
mongoose-link
0.1.2 • Public • Published mongoose-link
Link related documents from a mongoose query.
This module provides an alternative way to populate
related (linked) documents from a mongoose query.
It does not depend on _id
.
Install
$ npm install --save mongoose-link
Usage
var link = require('mongoose-link');
var Comment = require('./Comment');
var User = require('./User');
Comment.
find().
lean().
exec().
then(link.sync(User, 'created_by:user',{email:true}, {lean:true})).
then(function(comments) {
})
License
Apache-2.0 © Lasana Murray
Dependencies (1)
Dev Dependencies (4)
Package Sidebar
Install
Weekly Downloads