Multiple Properties in Select("$prop1, $prop2") dosent work

Jul 10, 2012 at 3:49 AM
Edited Jul 10, 2012 at 3:49 AM

The multiple selection with Select("$Prop1, $Prop2") dosent work is there any other syntax to do this?

Coordinator
Jul 11, 2012 at 4:16 PM

What kind of result do you expect?
tuple? object?
if your expect is object then

.Select("{Prop1:$.Prop1, Prop2:$.Prop2}")

this is same as

.Select(function(x){ return { Prop1:x.Prop1, Prop2:x.Prop2 }});