npm.io
1.1.1 • Published 8 years ago

mongoose-auto-populate-deep

Licence
MIT
Version
1.1.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0

Very simple mongoose plugin for auto populate all the model reference fields deep. Support 1 subref level.

Usage

Just

const mongoosePopulateDeep = require('mongoose-auto-populate-deep')

and

MongooseSchema.plugin(mongoosePopulateDeep, { exclude: [] });

exclude optional parameter. Excluded fields array. Provided fields won't be populated

Keywords