Okay @turivishal ,Thanks for your time, this is the solution,
db.businesslistings.updateMany({},
[
{
$set: {
"address": {
$getField: {
input: {
$arrayElemAt: [
{
$getField: {
input: {
$arrayElemAt: [
"$attributes",
0
]
},
field: "basicDetails"
}
},
1
]
},
field: "valueString"
}
}
}
}
])