Place.find(
{'name': {$regex: '^' + query + '.*'}},
['name'],
function(err, places) {
....
}
);
I run this against mongoose 2.1.0 (updated a few seconds ago via npm),
and it fails with the following error message:
Error: Can't use $regex with String.
Does this mean it's not supported or that my code sucks (or both)?
--
Branko Vukelic
bra...@brankovukelic.com
bra...@herdhound.com
IDEA MACHINE
www.brankovukelic.com
Lead Developer
Herd Hound (tm) - Travel that doesn't bite
www.herdhound.com
Love coffee? You might love Loveffee, too.
loveffee.appspot.com
--
http://mongoosejs.com
http://github.com/learnboost/mongoose
You received this message because you are subscribed to the Google
Groups "Mongoose Node.JS ORM" group.
To post to this group, send email to mongoo...@googlegroups.com
To unsubscribe from this group, send email to
mongoose-orm...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mongoose-orm?hl=en
Thanks!