mongodb aggregation project all fields aspects 1 code example
Example: mongodb project all fields
db.collection.aggregate([
{ "$addFields": { "custom_field": "$obj.obj_field1" } }
])
db.collection.aggregate([
{ "$addFields": { "custom_field": "$obj.obj_field1" } }
])