mongodb - What's is the meaning of this error 'command failed because the 'ok' field is missing or equals 0' when executing RawCommand in ReactiveMongo? -


i trying execute following command using rawcommand in reactivemongo:

val commanddoc =       bsondocument(         "update" -> "users",         "updates" -> bsonarray(           bsondocument("q" -> bsondocument("_id" -> bsonobjectid("53f265da13d3f885ed8bf75d")),             "u" -> bsondocument("$push" -> bsondocument("v" -> 6)), "upsert" -> false, "multi" -> false)          // bsondocument("q" -> query, "u" -> update2, "upsert" -> false, "multi" -> false)         ),         "ordered" -> true       )      // future[bsondocument]     val futureresult = con("tests").command[bsondocument](rawcommand(commanddoc))      futureresult.map { result => // result bsondocument        println(result)        true     } 

but got strange error result:

[defaultcommanderror:     bsoncommanderror['command failed because 'ok' field missing or equals 0']     original doc {       ok: bsoninteger(1),       nmodified: bsoninteger(0),       n: bsoninteger(0)     } ] 

what's happening?


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -