내 컬렉션에는 문서가 하나뿐입니다.
> db.c20160712.find()
{ "_id" : ObjectId("57ab909791c3b3a393e9e277"), "Dimension_id" : 2, "Attribute" : "good", "Hour" : "20160712_06", "Frequency_count" : 100
updateOne문서를 다른 문서로 교체 하기 위해 실행하고 싶습니다 . 하지만 왜 거기에 Error: the update operation document must contain atomic operators있습니까?
> db.c20160712.updateOne( { "Attribute" : "good"}, {"Type" : "DVD", "Title" : "Matrix, The", "Released" : 1999, "Genre" : "Action"}, { upsert: true} )
2016-08-10T16:37:57.089-0400 E QUERY [thread1] Error: the update operation document must contain atomic operators :
DBCollection.prototype.updateOne@src/mongo/shell/crud_api.js:493:1
@(shell):1:1
위 명령의 두 번째 및 세 번째 인수는 The Definitive Guide to MongoDB : A complete guide to handling BigData ... 작성자 : Eelco Plugge, David Hows, Peter Membrey, Tim Hawkins
내 MongoDB는 3.2입니다.