You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
345 B

db.getCollection("experiment_scopes").aggregate([
{
$match: {_id: "c45_v[5-45]_1"}
},
{
$unwind : "$instances"
},
{
$lookup:
{
from: "instances",
localField: "instances",
foreignField: "_id",
as: "instance"
}
},
{
$unwind: "$instance"
},
{
$project: {instance_id: "$instance._id"}
}
])