mongoose-query-parser
mongoose-query-parser copied to clipboard
Support filter / search / sort in the populate
mongoose populate with sort
WizardModel.find({})
.populate({
path: 'spells',
options: { sort: [['damages', 'asc']] }
})
mongoose populate with match
WizardModel.find({})
.populate({
path: 'spells',
match: { level_required: { $gte: 3 } }
})
@leodinas-hao any planning on this?