LearnBoost/mongoose — Issue #598: Regex: Error: Can't use $options with String
Author: Steren
Created: 2011-11-07 16:42:58+00:00
State: open

As defined in the [MongoDB documentation](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-RegularExpressions), the following syntax :

find(name: { $regex : searchString, $options: 'i' } )

is correct.

However, I've got the error *Can't use $options with String*

The same query works when I use directly the mongo shell.
I'm using mongoose 2.3.10 and mongo 2.0