1.1.1 • Published 6 years ago
mongoose-auto-populate-deep v1.1.1
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