Hi, Appreciate your insights. Looking at the link provided , $set is allowed. As in my original post, second command I have tried uses update many with $set. However, the results are same. It adds the meta field but sets it to string “$registerId” instead of value of the field registerId.
db.litmusDataPoint.updateMany({}, {$set: {"Metadata.registerId": "$registerId"}})