harksin harksin - 1 month ago 8x
Scala Question

BSONDocument from JSON string

Anyone know how convert a json string in

with ReactiveMongo driver ?

It looks like apply function for
who existing in the official Mongo Scala driver is not existing for now with reactive Driver.


It doesn't really make sense to convert a JSON String to a BSONDocument. If working with JSON, the JSON pack is recommanded, which leads to be able to convert any JsValue to a BSONValue.