project in aggregation mongodb code example
Example 1: MONGODB AGGREGATION tutorials
db.stocks.aggregate([
{ $match: { "price": 2000 } }
])
Example 2: MONGODB AGGREGATION tutorials
db.stocks.find().pretty()
db.stocks.aggregate([
{ $match: { "price": 2000 } }
])
db.stocks.find().pretty()