Database

[{"status":"ACTIVE","person":[{"name":"Jim","age":"2","qualification":[{"type":"education","degree":{"name":"bachelor","year":"2022"}},{"type":"certification","degree":{"name":"aws","year":"2021"}}]}]}]

Query

db.collection.aggregate([{$set:{person:{$map:{input:"$person",as:"p",in:{$mergeObjects:["$$p",{qualification:{$map:{input:"$$p.qualification",in:{$cond:{if:{$eq:["$$this.type","education"]},then:{$mergeObjects:["$$this",{score:"80"}]},else:"$$this"}}}}}]}}}}}])

Result