-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReactiveMongo 0.20.1 bson lib #94
Comments
i have created #95 |
PR was not merged yet so i found some workaround. Maybe it'll help someone. There is an compatibility layer import reactivemongo.api.bson.{BSONDocument, BSONDocumentReader, BSONObjectID}
/** Circe encoders based converter from BSON to Document */
implicit object DocumentReader extends BSONDocumentReader[Document] with BsonCodecInstances {
override def readDocument(doc: BSONDocument): Try[Document] = {
import reactivemongo.api.bson.compat._ // implicit conversions
for {
json <- bsonToJson(doc)
doc <- json.as[Document]
} yield doc
}.toTry
}
|
Thanks @DenisNovac it helped at least to me. Guys when do you plan to release those changes? The https://github.com/ReactiveMongo/ReactiveMongo-BSON is already released to 1.0.0 and with that version, neither workaround above is working due to classpath issues. - They released only |
0.5.0 is on its way to Maven Central: https://github.com/circe/circe-bson/releases/tag/v0.5.0 |
Great thx, I'm glad to hear that. :) |
It seems to work good with reactivemongo 1.0.3, thanks |
if I am not mistaken, reactivemongo.api.bson should be used instead of reactivemongo.bson
The text was updated successfully, but these errors were encountered: