Play-ReactiveMongo is a plugin for Play 2.x, enabling support for ReactiveMongo – reactive, asynchronous and non-blocking Scala driver for MongoDB.
Questions tagged [play-reactivemongo]
148 questions
1
vote
1 answer
Why does Play with ReactiveMongo report Disk Write failures due to java.io.NotSerializableException: reactivemongo.bson.BSONObjectID
I am trying to use SecureSocial in combination with reactivemongo. However, I am having problems when it comes to caching the users. During development, the user is logged out each time Play decides to recompile files. I think this is due to the…

Fynn
- 4,753
- 3
- 32
- 69
1
vote
2 answers
Scala Play ReactiveMongo - Arbitrary list of query parameters
I'm trying to support arbitrary filters for a REST API that fetches a list of documents from MongoDB.
For instance
//example.com/users <- list all
//example.com/users?age=30 <- all users who are 30
//example.com/users?age=30&name=John <- all users…

Henry
- 11
- 3
0
votes
0 answers
Does play2-reactivemongo v.0.18 support MongoDB 5?
Is there any info which version of MongoDB is supported by each version of Reactive Scala Driver (play2-reactivemongo)?
I need to upgrade MongoDB and wondering if current implementation with play2-reactivemongo v.0.18 will require upgrade too.

actis
- 119
- 1
- 2
0
votes
0 answers
Error when connection to mongodb version 6
I upgraded play-reactivemongo driver form version 0.16.2-play27 to version 1.1.0-play27-RC6
After fixing the code issues, I get an "Fails to send a isMaster request" error when trying to run the app against MongoDB ver 6 server with the same…

Yuri
- 185
- 1
- 13
0
votes
0 answers
Play2 and reactive mongodb version compatibility
We have an application with these dependencies:
"org.reactivemongo" %% "reactivemongo" % "0.10.5.0.akka23",
"org.reactivemongo" %% "play2-reactivemongo" % "0.10.5.0.akka23",
"com.typesafe.play" %% "play" % "2.3.10" % "provided"
The mongo database…

marie
- 457
- 8
- 27
0
votes
0 answers
ReactiveMongo 0.20.12-Play28 crashing on Startup with a MatchError: Success exception
ReactiveMongo Version (0.20.12-play28)MongoDB version (4.4.3)Operating System (Ubuntu 18.04.5 LTS)JDK ( OpenJDK 1.8.x)Library Dependencies
Play v2.8.7
Expected Behavior
On starting Play Server, reactive mongo should establish a connection with…

Ravinder Payal
- 2,884
- 31
- 40
0
votes
1 answer
ReactiveMongo with Play-json responsibility's division
I'm using play-json to serialize my incoming jsons to case classes, for example from sqs source, or from api calls.
its a very simple class JsonSerialization that I import where I need it:
object JsonSerialization {
implicit val StatusFormat:…

John Deer
- 119
- 11
0
votes
1 answer
How can I connect to an Atlas cluster with the SRV connection string format using ReactiveMongo?
I have a play scala app and i have an atlas cluster which i am trying to connect. According to the ReactiveMongo this is possible. I can add my connection string gotten from Atlas to my app via
mongodb.uri
In my application.conf file. I have tried…

stainlessbaby
- 23
- 1
- 8
0
votes
0 answers
Given transaction number 1 does not match any in-progress transactions. The active transaction number is -1
I am trying to run transaction in mongodb 4.2.6. The problem I am facing is when I try to create bulk insert (insertMany) transaction does not happen, But in the case on non-bulk-insert (insertOne) transaction happens without any problem.
I am…

John
- 2,633
- 4
- 19
- 34
0
votes
2 answers
The play app terminates for reactive mongo update operation
package models
import play.api.libs.json.{Json, OFormat}
import reactivemongo.bson.{BSONLong, BSONObjectID}
case class SavedPostOrBlog(
_id:Option[BSONObjectID],
postOrBlogId:BSONObjectID,
…

John
- 2,633
- 4
- 19
- 34
0
votes
0 answers
findAndModify working on shell but not in my app
I have readWrite role which supposed to give me the ability to use findAndModify(), which works when I connect to my mongo (4.2) machine, but from my app (play framework scala app using reactive mongo ver 0.18.8) I get the following error…

jack miao
- 1,398
- 1
- 16
- 32
0
votes
1 answer
Count num of documents result of a query with ReactiveMongo (play 2.7 and scala 2.12)
I'm using the latest ReactiveMongo for play 2.7 and scala 2.12:
"org.reactivemongo" %% "play2-reactivemongo" % "0.17.1-play27"
and I want to create a find query and to count the number of documents returned from this query...
something like:
def…

jack miao
- 1,398
- 1
- 16
- 32
0
votes
1 answer
ReactiveMongo|CosmosDb: How to connect to Cosmos Db using ReactiveMongo using URI
community. I am having a hard time connecting to Cosmos Db using Reactive Mongo client. I am able to connect to it using shell and NoSqlBooster client but failing using Reactive Mongo.
Authentication Mechanism |-------| Result
**scram-sha1** …

Ravinder Payal
- 2,884
- 31
- 40
0
votes
1 answer
Mapping a case class to a mongodb document using reactive mongo
Below is my simple document that represents a Link. I am using reactivemongo in scala for this.
I am getting this error during compilation:
app/components/Link.scala:60:11: No Json deserializer found for type
components.Link. Try to implement an…

Blankman
- 259,732
- 324
- 769
- 1,199
0
votes
0 answers
sync mongodb with elasticsearch scala environment
Im using reactive mongo as my mongodb(v3.4) driver in my play 2.6 application.
Does someone have a recommended way to sync every insert/update I have with my elasticsearch(v5.6)?

JohnBigs
- 2,691
- 3
- 31
- 61