Closed
Description
Shiv Jha-Mathur opened DATAMONGO-2467 and commented
Perform uncorrelated subqueries between two collections as well as allow other join conditions besides a single equality match:
{
$lookup:
{
from: <collection to join>,
let: { <var_1>: <expression>, …, <var_n>: <expression> },
pipeline: [ <pipeline to execute on the collection to join> ],
as: <output array field>
}
}
Reference URL: https://docs.mongodb.com/master/reference/operator/aggregation/lookup/#join-conditions-and-uncorrelated-sub-queries
1 votes, 2 watchers