I need to populate documents that have a property Type with value “recurring_expense”(every of these docs has that prop.), but my code pass every object of found. I’m use the $match operator, but nothing happens. Here is my code: Tenancy.populate properties, [ {path: 'reminder.referrer', model: 'ScheduledPayment', match: {type: 'recurring_expense'}} ], (err, properties) -> cb err, […]
The post Mongoose populate documents with specific property value appeared first on BlogoSfera.