Mongoose bidirectional models / many to many relationships
I haven't found a way to get populate to work both ways.
Normally we end up doing something like this
/** * Load the categories for this account * @method categories * @memberof Account * @instance * @param {Function} done */AccountSchema.methods.categories = function (done) { var Category = this.model('Category'); return Category.find({account: this}, done);};