1
からのデータと複数の文書で私はMongoDBは、このように見ていますアップデート同じフィールドJSON
[
{
"status" : 0,
"name" : "Yaknow",
"email" : "[email protected]",
"_id" : "5875a42ea469f40c684de385"
},
{
"status" : 1,
"name" : "johnk",
"email" : "[email protected]@this",
"_id" : "586e31c6ce07af6f891f80fd"
}
]
一方、すべての電子メールが変更されていると私は新しいものにJSONを得た:
[
{
"email" : "[email protected]",
"_id" : "5875a42ea469f40c684de385"
},
{
"email" : "[email protected]",
"_id" : "586e31c6ce07af6f891f80fd"
}
]
すべてのメールを更新するにはどうすればよいですか?
。それは私の特定の状況で簡単でした(魔女は、それ自体不思議です...) –