You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hrmm, we don't support that syntax, but we do support regexes, just do {field: /acme.*corp/i} and you'll be good. If someone can mention this in our "differences from mongodb docs" that would be great.
The only thing is, the former syntax is much easier to serialize for e.g. AJAX requests... Consider a JavaScript browser-application, trying to query on the server, passing that query using AJAX. I think the standardized syntax offers an advantage here.
Awesome project, thanks!
When writing a query using the syntax as mentioned here:
http://docs.mongodb.org/manual/reference/operator/regex/
query-engine throws an error. To be more specific: the query:
{ field: { $regex: 'acme.*corp', $options: 'i' } }
results in:
Error: Couldn't find the selector $regexp
The text was updated successfully, but these errors were encountered: