thatâs it. That really had helped :) Thank you Norbert!
On Dec 30, 2014, at 10:14 AM, Norbert Hartl <norbert@hartl.name> wrote:
Am 30.12.2014 um 02:32 schrieb Sebastian Sastre <sebastian@flowingconcept.com>:
Is anybody here using MongoTalk doing some fancy custom queries? Not just with boolean conditions but with regex for example.
Iâm interested in being able to execute and get the results of a raw javascript query but I cannot found how to do it.
I am missing something?
In order to execute a javascript query you would need a javascript interpreter. As this is not feasible Mongo provides alternative constructs for the most important things you need. For the regex it would be
aMongoCollection select: { 'fieldName' -> { '$regex' -> '.*foo' } asDictionary } asDictionary
Hope that helps,
Norbert