Commit 2670185bf59f336be9676c39c9eee3593df0aea7

Authored by Andrew Kane
2 parents 2c49e086 914e581e

Merge pull request #466 from meetrajesh/master

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
... ...