面试题答案
一键面试db.students.aggregate([
{
$project: {
name: 1,
math_score: "$scores.math",
_id: 0
}
}
]);
db.students.aggregate([
{
$project: {
name: 1,
math_score: "$scores.math",
_id: 0
}
}
]);