Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"full":null,"first":"a","last":"b"},{"full":"t_t","first":"a","last":"b"},{"first":"c","last":"b"}]
Query
db.collection.aggregate([{$project:{full:{$ifNull:["$full",{$concat:["$first","_","$last"]}]}}}])
Result