Answers for "mongodb project"

0

mongodb project

{ $project: { "contact.address.country": 1, contact: 1 } }
Posted by: Guest on March-10-2021
0

mongodb project all fields

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

Browse Popular Code Answers by Language