How to update data in mongodb?
This is my actual structure of my collection
db.collection.find().pretty()
{
"_id" : ObjectId("557914833ac61e518e6103ab"),
"dataValue" : {
"value1" : [
"value1 A",
"value1 B"
]
}
}
I want to insert like default in dataValue
db.collection.find().pretty()
{
"_id" : ObjectId("557914833ac61e518e6103ab"),
"dataValue" : {
"value1" : [
"value1 A",
"value1 B"
],
"default" : [
"default A",
"default B"
]
}
}
Please help me