Mongo Scala Driver Collection Does Not Update Document
<p>I'm able to insert, read, and delete but I cannot get either updateOne or updateMany to modify documents.</p>

<p>I'm using MongoDB 3.2.7 with libraryDependencies += "org.mongodb.scala" %% "mongo-scala-driver" % "1.1.1"</p>

<pre><code>def read() = {
val query = Document("title" -&gt; "Text Tiling")
methods.find(query).subscribe(
  (method: Document) =&gt; update(method.toJson()),                              // onNext
  (error: Throwable) =&gt; Logger.debug(s"Query failed: ${error.getMessage}"),   // onError
  () =&gt; Logger.debug("onComplete")                                            // onComplete
)}

def update(jsonSting:String): Unit = {
Logger.debug("update() " + jsonSting)

Logger.debug(methods.find().first().toString)
val observer = new Observer[UpdateResult] {
  override def onSubscribe(subscription: Subscription): Unit = {
    Logger.debug("onSubscribe: " + subscription.toString)
  }
  override def onComplete: Unit = {
    Logger.debug("onComplete")
  }
  override def onError(e: Throwable): Unit = {
    Logger.debug("onError: " + e.getMessage)
  }
  override def onNext(doc: UpdateResult) {
    Logger.debug("onNext")
  }
}

val filter = Document("title" -&gt; "Text Tiling")
val mod = Document("$set" -&gt; Document("reputation" -&gt; 5))
val result = methods.updateOne(filter,mod).subscribe(observer)
Logger.debug("result: " + result)}
</code></pre>

<p>Here are the logs:</p>

<p>[debug] application - update() { "_id" : { "$oid" : "5759542a4e0bf602adcab149" }, "title" : "Text Tiling", "reputation" : 0 }</p>

<p>[debug] application - org.mongodb.scala.ObservableImplicits$BoxedObservable@61ddc581</p>

<p>[debug] application - onSubscribe: org.mongodb.scala.ObservableImplicits$BoxedSubscription@6252b659</p>

<p>[debug] application - result: ()</p>

<p>[debug] application - onComplete</p>