reactivemongo Questions
1
Very often, when Play reloads the application after a code change, I receive the following error:
MongoError['The node set can not be reached! Please check your network
connectivity.']
The Mo...
Aura asked 6/9, 2016 at 17:46
6
We have upgraded to Play 2.7.0 recently and use play2-reactivemongo version 0.16.2 with reactivemongo 0.16.3. We use reactivemongo-shaded-native but also tried without.
We are connecting to a repl...
Pulitzer asked 15/2, 2019 at 10:8
5
I have a project set up with playframework 2.2.0 and play2-reactivemongo 0.10.0-SNAPSHOT. I'd like to query for few documents by their ids, in a fashion similar to this:
def usersCollection = db.c...
Botanize asked 29/10, 2013 at 12:11
5
Solved
I have the following code that works in a console app when referencing "org.reactivemongo" %% "play2-reactivemongo" % "0.10.5.0.akka23"
when I update the reference to "org.reactivemongo" % "play2-...
Nationalism asked 30/6, 2015 at 15:24
3
I have a basic model with a case class
case class Record( id: Option[String],
data: Double,
user: String,
)
object RecordJsonFormats {
import play.api.libs.json.Json
implicit val recordFor...
Quint asked 6/3, 2015 at 19:10
3
I recently upgraded Play to version 2.3.5 and try to use it with ReactiveMongo. However everytime I try to read data from mongoDB an exception occurred. This is my build.sbt:
name := """ReactiveM...
Bluet asked 17/10, 2014 at 12:2
0
How can I write the following query in ReactiveMongo.
db.products.insert(
{ item: "envelopes", qty : 100, type: "Clasp" },
{ writeConcern: { w: 2, wtimeout: 5000 } }
)
I have tried the like be...
Ymir asked 16/2, 2018 at 6:41
2
Solved
Here is an simple JSON I want to write/read to/from MongoDB:
{
"id": "ff59ab34cc59ff59ab34cc59",
"name": "Joe",
"surname": "Cocker"
}
Before storing it in MongoDB, "ff59ab34cc59ff59ab34cc59" ...
Galligaskins asked 10/1, 2014 at 12:12
2
Solved
I'm writing a web service with akka-http and ReactiveMongo.
I faced with problem, which I unable to resolve by myself.
I have method
def saveRoute(route: Route)(implicit writer: BSONDocumentWrit...
Calorific asked 6/9, 2016 at 16:12
2
Solved
I'm getting a:
No Json deserializer found for type Option[reactivemongo.bson.BSONObjectID]. Try to implement an implicit Reads or Format for this type.
When trying to deserialise my review objec...
Reticent asked 3/6, 2013 at 13:47
2
I have installed the following:
1.Play 2.4
2.Created a scala project
3.added the eclipse plugin
Now I wanted to add a database connection. I want to tryout ReactiveMongo, but the instructions on t...
Dianoetic asked 29/5, 2015 at 20:42
1
Solved
This Exception invoked and not able to resolved it ...
Error:scalac: missing or invalid dependency detected while loading class file 'GenericCollection.class'.
Could not access term play in pack...
Certify asked 28/2, 2015 at 11:11
1
Solved
Reading the documentation about the Play Framework and ReactiveMongo leads me to believe that ReactiveMongo works in such a way that it uses few threads and never blocks.
However, it seems that th...
Saloon asked 2/9, 2014 at 7:40
2
Solved
I'm using Scala, Play Framework 2.1.x, and reactivemongo driver.
I have an api call :
def getStuff(userId: String) = Action(implicit request => {
Async {
UserDao().getStuffOf(userId = userId...
Histoid asked 17/10, 2013 at 16:8
2
Solved
I am trying to find the best approach to sharing the same pool of connection between actors withing the cluster workers. I have the following structure:
Master Actor -> Worker Actors(can be up to ...
Kutzenco asked 5/9, 2013 at 14:7
1
Solved
I've started to learn reactivemongo by creating a simple Scala project. I started with SBT. Here is my build.sbt file:
name := "mongo-test"
version := "1.0"
scalaVersion := "2.10.2"
libraryDepe...
Priceless asked 7/10, 2013 at 15:25
1
Solved
I've started using Play and the Play-ReactiveMongo plugin and testing for a 404 response on a GET "document by id" scenario. Unfortunately instead of Play returning a 404 NotFound response I get th...
Palaeozoology asked 15/6, 2013 at 19:6
1
© 2022 - 2024 — McMap. All rights reserved.