Database
[{caption:"String",comments:[{comment:"String",likedBy:[{},{}]},{comment:"String",likedBy:[{},]}]}]
Query
db.collection.aggregate([{$project:{comments:{$map:{input:"$comments",in:{$mergeObjects:["$$this",{numberOfLikes:{$size:"$$this.likedBy"}}]}}}}}])