I am confused. If I look here:
Then, on that page, you wrote:
"WriteResults are indeed DBObject instances. You can convert them to Clojure maps using monger.conversion/from-db-object
, just like with DBObjects, map/reduce results and command results."
But, as I showed in my first post, up above, when I try this at the repl, even after I run the return value through monger.conversion/from-db-object, it is still a WriteResult.
I really only want to check the value of "ok". You have written that the Monger function ok? is deprecated and we should not use it. I don't really mind using the Java interop to deal directly with the WriteResult. I see the API here:
I assume I can use getField("ok") to get the value of "ok". But is this what you recommend as best practice?