Update README.md

pull/2/head
Louis Chatriot 12 years ago
parent e84da673a9
commit 395e3e5965
  1. 2
      README.md

@ -172,7 +172,7 @@ The syntax is `{ field: { $op: value } }` where `$op` is any comparison operator
* `$in`: member of. `value` must be an array of values
* `$ne`, `$nin`: not equal, not a member of
* `$exists`: checks whether the document posses the property `field`. `value` should be true or false
* `$regex`: checks whether a string is matched by the regular expression. Contrary to MongoDB, the use of `$options` with `$regex` is not supported, because it doesn't give you more power than regex flags. Basic queries are more readable so only use the `$regex` when you need to use another operator with it (see example below)
* `$regex`: checks whether a string is matched by the regular expression. Contrary to MongoDB, the use of `$options` with `$regex` is not supported, because it doesn't give you more power than regex flags. Basic queries are more readable so only use the `$regex` operator when you need to use another operator with it (see example below)
```javascript
// $lt, $lte, $gt and $gte work on numbers and strings

Loading…
Cancel
Save