Skip to content

pgerlach/mongoose-deep-populate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongoose deep populate

Quick and dirty replacement for mongoose-deep-populate plugin that is not maintained anymore. Uses the multiple level population introduced in Mongoose > 4 (?).

Usage

setup

mongoose.plugin(require('mongoose-deep-populate'))

usage

MySchema.find({}).deepPopulate("foo.bar baz")
const doc = await MySchema.findOne({});
await doc.deepPopulate("foo.bar baz").execPopulate();

About

plugin to add deepPopulate method to Mongoose

Resources

Stars

Watchers

Forks

Packages

No packages published