Reactive Scala Driver for MongoDB
Asynchronous & Non-Blocking
Version 1.0.1 - Changelog
import reactivemongo.api.bson.BSONString
BSONString("fr").asTry[java.util.Locale] // Success(Locale.FRENCH)
Experimental single field document handler:
import reactivemongo.api.bson.{ BSONDocument, BSONDocumentReader }
val reader = BSONDocumentReader.field[String]("foo")
val doc = BSONDocument("foo" -> "bar")
reader.readTry(doc) // Success("bar")
Compatibility with mongo-scala-bson 4.1.1.
- Fix bulk update for large number of documents.
- Support uncorrelated
$lookup
in the aggregation framework:
LookupPipeline(
from = "warehouse",
let = let,
pipeline = List(m, project),
as = "stockdata")
Compatibility with Play JSON 2.9:
libraryDependencies ++= Seq(
"org.reactivemongo" %% "reactivemongo-play-json-compat" % "1.1.0-RC13-play29"
)
Monitoring:
A new monitoring module exposes the ReactiveMongo metrics using StatsD integration for Datadog.
"org.reactivemongo" %% "reactivemongo-datadog" % "1.1.0-RC13"
Scalafix:
The Scalafix module for ReactiveMongo is now compatible with Scalafix 0.9.23 and up to Scala 2.13.
scalafixDependencies in ThisBuild ++= Seq(
"org.reactivemongo" %% "reactivemongo-scalafix" % "1.1.0-RC13")
Once the rules are configured, they can be applied from SBT.
scalafix ReactiveMongoUpgrade
scalafix ReactiveMongoLinter --check