My project is using Laravel and jenssegers/laravel-mongodb ext. I have a query with lookup:
'$lookup' => [
'from' => 'proposals',
'localField' => '_id',
'foreignField' => 'proposal_round_mongo_id',
'as' => 'proposal'
]
Proposal has a property status
. How can I "join" propsoals with select data with where status="active"
condition?