i have a mongodb that it has many column Contains Id , name and phone number.I used a command to get the length of the phone numbers.I want to add the output obtained from the length of the phone numbers in a column to my database.I used the following command for this
db.rs1.aggregate( [ { $project: { "_id": 1,"phone number": 1, "length": { $strLenCP: "$phone number" }; ])
But the output (length) just appears, but not saved.How can I add this output(length) as a new column to my database