Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"game":[{"x":1}]},{"game":[{"x":1}]},{"game":[{"x":1}]}]]
Query
db.collection.aggregate([{$replaceRoot:{newRoot:{$arrayElemAt:["$game",0]}}}])
Result