Neils svar virkede. Tilføjelse af { $replaceRoot: { newRoot: "$inventory_docs" } }
gjorde jobbet. Tak Neil.
db.coll1.aggregate([
{
$lookup:
{
from: "coll2",
localField: "_id",
foreignField: "comm_field",
as: "inventory_docs"
}
},
{
$project:{"_id" : 0, "inventory_docs" : 1}
},
{ $unwind:"$inventory_docs"},
{ $replaceRoot: { newRoot: "$inventory_docs" } }
])