Q:

mongodb project all fields

db.collection.aggregate([
    { "$addFields": { "custom_field": "$obj.obj_field1" } }
])
0

New to Communities?

Join the community