Commit 914e581ea721ad069999cec8760b3116e81a3b00
1 parent
2c49e086
Exists in
master
and in
21 other branches
Update README to show regexp support
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
README.md
... | ... | @@ -92,6 +92,9 @@ Where |
92 | 92 | where: { |
93 | 93 | expires_at: {gt: Time.now}, # lt, gte, lte also available |
94 | 94 | orders_count: 1..10, # equivalent to {gte: 1, lte: 10} |
95 | + name: "hello", # name exact match search | |
96 | + name: /hel+o/, # regex search | |
97 | + name: {regexp: "hel+o"}, # alternate regex syntax | |
95 | 98 | aisle_id: [25, 30], # in |
96 | 99 | store_id: {not: 2}, # not |
97 | 100 | aisle_id: {not: [25, 30]}, # not in | ... | ... |