Database

[{title:"apple",attributes:{colour:"red",kind:"fruit"}},{title:"broccoli",attributes:{colour:"green",kind:"vegetable"}},]

Query

db.collection.aggregate([{$replaceRoot:{newRoot:{$mergeObjects:["$$ROOT","$attributes"]}}},{$project:{attributes:0}}])

Result