great, that works!!! seriously funky query though. I thought time
values were stored as just a number. Why do you have to call getTime
() just to check for != ?
thanks, Jon
On Nov 13, 3:14 pm, Kyle Banker <
k...@10gen.com> wrote:
> Jon,
>
> You'll have to include a call to getTime for this to work:
>
> collection.find({'$where' => 'this.created_at.getTime() !=
> this.updated_at.getTime()'},
> {:limit => 50}).sort(:updated_at, Mongo::DESCENDING)
>
> On Fri, Nov 13, 2009 at 3:03 PM, Eliot Horowitz <
eliothorow...@gmail.com>wrote:
>
>
>
>
>
> > That looks correct at a quick glance...
> > You're not getting any results?
>
> > On Fri, Nov 13, 2009 at 2:42 PM, Jon Hancock <
shellsha...@gmail.com>