$ in select clause

11 views
Skip to first unread message

Dennis Haupt

unread,
Aug 29, 2014, 9:03:20 AM8/29/14
to rogue...@googlegroups.com
hi there,

this query works fine:
Customer.where(_.o eqs someId)
    .and(_.d eqs someId)
    .and(_.participant elemMatch (_.c eqs someId2))
    .select(_.participant)

but this one

Customer.where(_.o eqs someId)
    .and(_.d eqs someId)
    .and(_.participant elemMatch (_.c eqs someId2))
    .select(_.participant.$)

gives me lists containing "null". the number of nulls is the expected number of elements, but the elements itself are missing.
is this a known bug, going to be fixed, my mistake, is there a workaround?

Jason Liszka

unread,
Sep 1, 2014, 2:42:16 PM9/1/14
to rogue...@googlegroups.com
Hi,

It looks like $ is not yet supported in select clauses. I'm working on a fix. Thanks for the bug report!

Jason


--
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 rogue-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Liszka

unread,
Sep 3, 2014, 4:26:35 PM9/3/14
to rogue...@googlegroups.com
I have a fix working, but I had to call it $$ to disambiguate it from the $ positional operator in modify clauses. Does that seem acceptable?

Jason Liszka

unread,
Sep 5, 2014, 12:06:28 PM9/5/14
to rogue...@googlegroups.com
This is included in the 2.4.0 release, just published this morning. Example:

Venue.where(_.claims.subfield(_.userid) eqs 1234).select(_.claims.$$).fetch()
Reply all
Reply to author
Forward
0 new messages