Reactive Scala Driver for MongoDB

Asynchronous & Non-Blocking

Version 1.0.1 - Changelog

BSON library:

Handler for java.util.Locale:

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.

Driver:

LookupPipeline(
  from = "warehouse",
  let = let,
  pipeline = List(m, project),
  as = "stockdata")

Play JSON library:

Compatibility with Play JSON 2.9:

libraryDependencies ++= Seq(
  "org.reactivemongo" %% "reactivemongo-play-json-compat" % "1.0.1-play29"
)

Monitoring:

A new monitoring module exposes the ReactiveMongo metrics using StatsD integration for Datadog.

"org.reactivemongo" %% "reactivemongo-datadog" % "1.0.1"

See the documentation

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.0.1")

Once the rules are configured, they can be applied from SBT.

scalafix ReactiveMongoUpgrade
scalafix ReactiveMongoLinter --check

Suggest changes