Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{arr:[{id:1,text:"foo"},{id:2,text:"bar"},]}]
Query
db.collection.aggregate([{$addFields:{text1:"$arr.text"}}])
Result