Database

[{"productData":{"_id":ObjectId("634020b72f772f0f828eadaa"),"name":"shoe","price":450}}]

Query

db.collection.aggregate([{$replaceWith:"$productData"}])

Result