In DocumentDB doc :
In documento MongoDB :
corrispondenza di uguaglianza ha la seguente sintassi:
{
$lookup:
{
from: <collection to join>,
localField: <field from the input documents>,
foreignField: <field from the documents of the "from" collection>,
as: <output array field>
}
}
sottoquery non correlate ha la seguente sintassi:
{
$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>
}
}
Quindi la seconda sintassi non è supportata in DocumentDB.