{
"a" :"2"
"b" : "3"
}
I want to create a new "c" that copied his data from "a" the new update will looks like the following:
{
"a" : "2"
"b" : "3"
"c" : "2"
}
I tried with $addfileds
but it does not work
db.letters.aggregate(
[
{ "$addFields": {
"c": "$a"
}},
{ "$out": "collection" }
]
)