📅  最后修改于: 2022-03-11 14:55:50.430000             🧑  作者: Mango
代码示例3
db.sales.aggregate( [ { $project: { item: 1, total: { $subtract: [ { $add: [ "$price", "$fee" ] }, "$discount" ] } } } ] )