FAQ

Search Discussions

93 discussions - 412 posts

  • I recently discovered the rather useful MongoCaseClassField, however, it seems that doing e.g. where(_.status eqs Pending) on it results in the following compilation error: could not find implicit ...
    Erik AllikErik Allik
    Apr 15, 2014 at 1:48 pm
    Apr 16, 2014 at 3:39 am
  • Hi! I have something like this: Bar.where(_.foo.subfield(_.id) in myIdList).fetch() And this gives me all Bars which have a foo with an id contained in myIdList. What I really need is a query that ...
    DD
    Mar 12, 2014 at 11:02 pm
    Mar 13, 2014 at 11:45 am
  • I could use some help figuring out why I'm getting this error: could not find implicit value for evidence parameter of type com.foursquare.rogue.BSONType[org.joda.time.DateTime] I have a MongoRecord ...
    David BoonDavid Boon
    Mar 12, 2014 at 9:09 pm
    Mar 13, 2014 at 12:32 pm
  • Some new features: *$setOnInsert* A set that only applies when an upsert is an insert. The query below will create an initialized record but avoid resetting the count if the record already exists ...
    Jason LiszkaJason Liszka
    Mar 5, 2014 at 11:15 pm
    Mar 5, 2014 at 11:15 pm
  • Hello, I was looking in more detail at the usage of phantom types in Rogue and I'm wondering about the role of the Required class and its type parameters. E.g. for AddOrder we have: trait ...
    Adam WarskiAdam Warski
    Jan 22, 2014 at 2:03 pm
    Feb 11, 2014 at 8:10 am
  • Hello, another common compilation that I have when upgrading from rogue 1.1.8 to 2.2.0 is: could not find implicit value for evidence parameter of type ...
    Adam WarskiAdam Warski
    Jan 10, 2014 at 2:19 pm
    Feb 11, 2014 at 6:56 pm
  • Hello, I'm (finally) updating some code which was using Rogue 1.1.8 to 2.2.0. In some very simple queries, like: User.where(_.externalId eqs externalId).get I get the compilation error: Query must be ...
    Adam WarskiAdam Warski
    Jan 10, 2014 at 2:09 pm
    Jan 10, 2014 at 2:21 pm
  • Hello, I'm in the process of updating a lift app from Scala 2.9.1 and Lift 2.5.1 to Scala 2.10.x and Lift 2.6-M2 and have run into bunch of what look like implicit errors around date operations. For ...
    Jonathan FergusonJonathan Ferguson
    Nov 18, 2013 at 11:03 pm
    Nov 19, 2013 at 6:58 pm
  • Hi, I have a trait which mixes some attributes into some other records. But I'm struggling to write generic controller code which only operates on the attributes defined by the relevant trait ...
    OttoOtto
    Oct 16, 2013 at 3:08 pm
    Oct 17, 2013 at 1:13 pm
  • Hi all, Rogue-Field (https://github.com/foursquare/rogue-field) has gone rogue, and split into an independent project. The maven package name and interface remains the same as before, so this should ...
    John GallagherJohn Gallagher
    Oct 8, 2013 at 7:31 pm
    Oct 8, 2013 at 7:31 pm
  • Hi all, I can't find a way to query by exact value of an array field in Rogue. It should be something like that: Venue.where(_.tags eqs List("db", "ka")).toString() must_== """db.venues.find({ "tags" ...
    Aleksey IzmailovAleksey Izmailov
    Oct 2, 2013 at 8:02 pm
    Oct 2, 2013 at 8:28 pm
  • Hi all, In rogue, field projection is implemented with *select* operator. An example from ...
    Aleksey IzmailovAleksey Izmailov
    Sep 28, 2013 at 2:42 am
    Oct 2, 2013 at 2:27 am
  • Hi guys, I'm trying to see how one would approach a query like this db['user.users'].find({"followers.5237afe68c9a759a8d056e7a": {$exists:true}},{"followers.5237afe68c9a759a8d056e7a":1}) "followers" ...
    AlexmnycAlexmnyc
    Sep 17, 2013 at 4:04 am
    Sep 17, 2013 at 5:25 pm
  • Hi All, I'm trying to use MongoDB near query, but I wanted to store my data as GeoJson. The examples I saw, even in the test classes seems that rogue only support what mongo calls "legacy coordinate ...
    Gilberto GarciaGilberto Garcia
    Sep 12, 2013 at 6:37 pm
    Sep 12, 2013 at 10:51 pm
  • Hi all, Just wondering if Rogue has any plans to support *$setOnInsert* operator as described here: http://docs.mongodb.org/manual/reference/operator/setOnInsert/ It seems to be pretty useful since ...
    Aleksey IzmailovAleksey Izmailov
    Sep 11, 2013 at 9:28 pm
    Sep 14, 2013 at 2:01 am
  • I have object expires extends DateTimeField(this) In rogue attempting to do the following val expiry = Calendar.getInstance(); expiry.add(Calendar.MINUTE,30); SocialUser.where(_.id eqs ...
    AlexmnycAlexmnyc
    Sep 6, 2013 at 7:29 pm
    Sep 7, 2013 at 10:19 pm
  • Hi, I opened an issue here with some code to reproduce it: https://github.com/foursquare/rogue/issues/90 I didn't get any reply so far so I though maybe this is a better place to post it. Thanks -- ...
    Aleksey IzmailovAleksey Izmailov
    Sep 6, 2013 at 2:04 am
    Sep 12, 2013 at 9:58 pm
  • What is the best way to construct a query with dynamically added pipes similar to var query = User.where(_.id eqs someId) if (something) query = query.modify(_.likes push List("like")) if ...
    AlexmnycAlexmnyc
    Sep 4, 2013 at 6:37 pm
    Sep 6, 2013 at 7:29 pm
  • Is there a way to use $addToSet with $slice modifier in rogue? Thank you. Example: *db.students.update( { _id: 2 },* *{ * *$addToSet: { grades: {* * $each: [ 80, 78, 86 ],* * $slice: -5* * }* * }* ...
    AlexmnycAlexmnyc
    Sep 4, 2013 at 3:31 pm
    Sep 4, 2013 at 7:34 pm
  • Hi guys, Does anyone know if $geoNear is implemented in the latest rogue branch? I'm looking for a way to return distance to the location as well as the location itself. Is there any other way to ...
    AlexmnycAlexmnyc
    Sep 2, 2013 at 11:49 pm
    Sep 4, 2013 at 3:37 pm
  • Hi, I have noticed Rogue 2.1.0 is still using the open_! calls to open a box, In order to work in a Lift 3.0 project these calls should be replaced by def openOrThrowException(justification ...
    Roch DelsalleRoch Delsalle
    Aug 22, 2013 at 4:19 pm
    Aug 24, 2013 at 11:39 am
  • Good Morning, i was trying to atomically update a subfield inside a record with Rogue 2.1.0. Is there anything like it? I actually have a List of "Games", which has an embedded BsonRecordList for ...
    Franz BettagFranz Bettag
    Jul 29, 2013 at 7:06 pm
    Jul 29, 2013 at 8:42 pm
  • When running multiple field orderAsc or orderDesc as in: .orderDesc(_.name).orderAsc(_.showattribute). I get compiler error: [error] dispatch\PublicAPI.scala:95: Query must be Unordered, but it's ...
    AlexmnycAlexmnyc
    Jul 16, 2013 at 7:55 pm
    Jul 16, 2013 at 8:12 pm
  • Hi, I would like to know if its possible to filter on a BsonRecordListField's field using Rogue queries. I have tried using subfield but as far as I know it only works with BsonRecordField Roch -- ...
    Roch DelsalleRoch Delsalle
    Jun 27, 2013 at 12:07 am
    Jun 29, 2013 at 11:17 am
  • New in this version: - fixed edge case rendering $or queries (thanks Konrad!) - support for user defined setFromAny in fields with BsonRecordField and iteratees (thanks Arseny!) - $elemMatch support ...
    Jason LiszkaJason Liszka
    Jun 21, 2013 at 9:44 pm
    Jun 28, 2013 at 11:45 am
  • Using v 1.1.8 I had a query descriptionMatch: Option[String]): AbstractQuery[Device, Device, Unordered, _, Unlimited, Unskipped, _] = { ... But using 2.0.0 I get a compile error: not found: type ...
    Brent GraceyBrent Gracey
    Jun 20, 2013 at 10:02 am
    Jun 21, 2013 at 9:14 am
  • Hi all, We've been working on the v2 branch in git for the 2.0.0 release of rogue. Now that the release is out, I've merged it into master. So from now on the README on ...
    Jason LiszkaJason Liszka
    Jun 17, 2013 at 5:26 pm
    Jun 18, 2013 at 2:53 pm
  • Hi all, I'm trying to filter to update an array based on a Date field. The array object is defined as class UserToUserJoin extends BsonRecord[UserToUserJoin] { def meta = UserToUserJoin lazy val date ...
    Brent GraceyBrent Gracey
    Jun 16, 2013 at 2:27 pm
    Jun 21, 2013 at 9:13 am
  • for some reason, i cannot install rogue.. my system can't find it.. my library dependencies look like: libraryDependencies ++= { val liftVersion = "2.5" Seq( "net.liftweb" %% "lift-webkit" % ...
    Sergio ruizSergio ruiz
    Jun 11, 2013 at 3:51 pm
    Jun 12, 2013 at 1:34 am
  • Guys, I can see a pull example here Venue.where(_.legacyid eqs 1).modify(_.tags pull "a") .toString() must_== query + """{ "$pull" : { "tags" : "a"}}""" + suffix which works fine. But how would one ...
    AlexmnycAlexmnyc
    Jun 10, 2013 at 9:55 pm
    Jun 18, 2013 at 4:06 pm
  • Hi, I can't figure out a way to *match a regex on a list/array with rogue*. Trying to use $regex<http://docs.mongodb.org/manual/reference/operator/regex/ operator to match different parts of a ...
    Aleksey IzmailovAleksey Izmailov
    Jun 10, 2013 at 2:10 am
    Jun 10, 2013 at 9:39 pm
  • Hi Rogue folks, I am upgrading existing code from Rogue 1.1.8 to 2.0.0 and lift-mongodb-record from 2.4-M5 to 2.5. I'm having difficulty writing MongoCaseClassField that contains a scala enum, that I ...
    Juneyt DonmezJuneyt Donmez
    Jun 7, 2013 at 8:20 pm
    Jun 14, 2013 at 5:15 pm
  • about to start my very first lift project.. i am using Record with MongoDB.. i would REALLY like to use Rogue. can anyone tell me if Rogue works with Lift 2.5, and if so, is there anything special i ...
    Sergio ruizSergio ruiz
    Jun 6, 2013 at 7:50 pm
    Jun 7, 2013 at 9:35 am
  • Hi all, I would like to use Rogue in Lift and perform text search<http://docs.mongodb.org/manual/core/text-search/ using Rogue DSL on MongoDB. I could not find any information on support of *text ...
    Aleksey IzmailovAleksey Izmailov
    Jun 3, 2013 at 2:25 am
    Jun 5, 2013 at 2:39 am
  • Hi, I am kinda new to lift and was using a simple HTTP service framework in SCALA and wanted to use rogue as my SCALA driver for mongodb . Is it possible ?? Thanks in advance -- You received this ...
    Bhanu ChaudharyBhanu Chaudhary
    Jun 1, 2013 at 5:39 am
    Jul 31, 2013 at 5:01 am
  • Guys, I'm hoping someone can recommend how to do a logical operator in a query on a subfield of a set. Basically, I am trying to do a logical query on the same fields of a subfield as in ...
    AlexmnycAlexmnyc
    May 29, 2013 at 4:10 pm
    May 29, 2013 at 9:03 pm
  • Can I do something similar to this: case class User (displayName: String) UserRecord where (_.id eqs 1).selectCase(_.firstName + " " + _.lastName, User) Thanks -- You received this message because ...
    Truong Tho NguyenTruong Tho Nguyen
    May 18, 2013 at 9:15 pm
    May 19, 2013 at 10:02 pm
  • It's hard to understand from the documentation whether or not these two lines in Venue model actually are supposed to create an index. Running code as is, I don't see index ever being created in ...
    AlexmnycAlexmnyc
    Apr 23, 2013 at 5:23 pm
    Apr 23, 2013 at 6:34 pm
  • Hey, I was looking for the source code for the 2.10 version of lift (which is great) and it seems like it isn't on github. I am using a snapshot version of lift so was going to just make a few ...
    Reuben DoetschReuben Doetsch
    Apr 12, 2013 at 3:45 pm
    Apr 22, 2013 at 10:05 pm
  • Hi guys, I was wondering if you are going to add support for capped arrays<http://docs.mongodb.org/manual/release-notes/2.4/#limit-number-of-elements-in-an-array (new in Mongo 2.4)? Regards Stephan ...
    StephanosStephanos
    Mar 19, 2013 at 2:23 pm
    Mar 19, 2013 at 9:21 pm
  • Hi, I would like to know if its possible to use MongoDB aggregations via Rogue ? I'm currently setting up a small list with filters and I'm trying to do it without using ElasticSearch / Facets since ...
    Roch DelsalleRoch Delsalle
    Mar 14, 2013 at 12:51 pm
    Mar 19, 2013 at 10:09 am
  • I have a use case where I need to find records for which a field is the prefix of my search term. Is this possible? To be concrete in code I would like to do the opposite of ...
    Viktor HedefalkViktor Hedefalk
    Mar 7, 2013 at 2:50 pm
    Mar 8, 2013 at 2:05 pm
  • Thank you! -- You received this message because you are subscribed to the Google Groups "rogue-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to ...
    Alex MAlex M
    Mar 6, 2013 at 2:26 am
    Mar 6, 2013 at 2:26 am
  • I'm stuck on this all day already, I hope someone has an idea how to solve this. Basically I have a base document that has a few instances (db.doc0, db.doc1 etc.): import ...
    StephanosStephanos
    Mar 1, 2013 at 2:08 pm
    Mar 2, 2013 at 8:49 am
  • Hello everyone, I was wondering about switching to Rogue but I notice a problem with the geo search. You are using a LatLong case class that specifies lat before long and the doc specifically says ...
    Ugo BataillardUgo Bataillard
    Feb 26, 2013 at 6:08 am
    Feb 28, 2013 at 3:48 pm
  • Hi folks, I've been trying to migrate from 1.1.7 to 2.0.0 RC1 and I've faced an issue that took me some time to figure out due to lack of documentation. I have a BsonRecordField that contains a ...
    Ján RaškaJán Raška
    Feb 25, 2013 at 8:53 am
    Jun 28, 2013 at 6:15 pm
  • Hi guys, Any news when Tests will be updated to be using ObjectIdPk vs deprecated MongoId. Thank you. Alex -- You received this message because you are subscribed to the Google Groups "rogue-users" ...
    AlexmnycAlexmnyc
    Feb 11, 2013 at 12:05 am
    Feb 14, 2013 at 3:11 pm
  • Hi, if I'm informed correctly rogue doesn't support insert. I guess it makes sense looking at its history with lift where you could use the save method. But doesn't it make sense now to add insert ...
    OttoOtto
    Feb 8, 2013 at 11:52 pm
    Feb 11, 2013 at 6:12 am
  • I was just wondering if it's feasible to combine Rogue and ReactiveMongo<http://reactivemongo.org/ in order to get typesafe, non-blocking MongoDB querying? I have no complete understanding of the ...
    StephanosStephanos
    Feb 8, 2013 at 2:58 pm
    Aug 23, 2013 at 11:25 am
  • Hello, quick question: How one is supposed to calculate average of a field, say rating, using Rouge? Should I pull all the documents and calculate it in scala or is there a better way like map-reduce ...
    Paweł GajewskiPaweł Gajewski
    Dec 28, 2012 at 6:54 pm
    Dec 28, 2012 at 7:21 pm
Group Navigation
period‹ prev | Latest | first ›
Group Overview
grouprogue-users @
categoriesmongodb
discussions93
posts412
users53
websitegithub.com...
irc#mongodb

Top users

Jason Liszka: 131 posts A Mikhailau: 39 posts Stephan: 39 posts Otto: 21 posts Jorge Ortiz: 19 posts Aleksey Izmailov: 16 posts Roch Delsalle: 15 posts Viktor Hedefalk: 11 posts Matroska: 9 posts Brent Gracey: 9 posts Adam Warski: 6 posts Tim Nelson: 6 posts Marc Siegel: 6 posts Daniel Eggert: 6 posts David Boon: 5 posts Joe Stein: 5 posts Mateusz Paprocki: 4 posts Maarten Koopmans: 4 posts Konrad Malawski: 4 posts Adam Warski: 3 posts
show more