Answers for "project aggregation mongodb"

Go
0

mongodb project all fields

db.collection.aggregate([
    { "$addFields": { "custom_field": "$obj.obj_field1" } }
])
Posted by: Guest on September-25-2020
0

MONGODB AGGREGATION tutorials

db.stocks.insertMany([
   { name: "Infosys", qty: 100, price: 800 },
   { name: "TCS", qty: 100, price: 2000 },
   { name: "Wipro", qty: 2500, price: 300 }
])
Posted by: Guest on October-15-2020
0

MONGODB AGGREGATION tutorials

db.stocks.find().pretty()
Posted by: Guest on October-15-2020

Code answers related to "project aggregation mongodb"

Browse Popular Code Answers by Language