mongoose-auto-populate-deep
v1.1.1
Published
Populate all the fields deep auto
Downloads
14
Maintainers
Readme
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