$projectを追加できます userからのフィールドを制限するステージ $lookupの後の配列
db.collection('bugs').aggregate([{
$project: {
"user.title": 1,
"user.firstname": 1,
"user.lastname": 1
}
}]);
$projectを追加できます userからのフィールドを制限するステージ $lookupの後の配列
db.collection('bugs').aggregate([{
$project: {
"user.title": 1,
"user.firstname": 1,
"user.lastname": 1
}
}]);