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.

22 lines
345 B

  1. db.getCollection("experiment_scopes").aggregate([
  2. {
  3. $match: {_id: "c45_v[5-45]_1"}
  4. },
  5. {
  6. $unwind : "$instances"
  7. },
  8. {
  9. $lookup:
  10. {
  11. from: "instances",
  12. localField: "instances",
  13. foreignField: "_id",
  14. as: "instance"
  15. }
  16. },
  17. {
  18. $unwind: "$instance"
  19. },
  20. {
  21. $project: {instance_id: "$instance._id"}
  22. }
  23. ])