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
Post a Comment