Commit e585652fa062f43a527b3409214f217ef3392ae3

Authored by Andrew Kane
1 parent 2670185b

Updated regexp example

Showing 1 changed file with 1 additions and 3 deletions   Show diff stats
@@ -92,9 +92,7 @@ Where @@ -92,9 +92,7 @@ Where
92 where: { 92 where: {
93 expires_at: {gt: Time.now}, # lt, gte, lte also available 93 expires_at: {gt: Time.now}, # lt, gte, lte also available
94 orders_count: 1..10, # equivalent to {gte: 1, lte: 10} 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 + category: /frozen .+/, # regexp
98 aisle_id: [25, 30], # in 96 aisle_id: [25, 30], # in
99 store_id: {not: 2}, # not 97 store_id: {not: 2}, # not
100 aisle_id: {not: [25, 30]}, # not in 98 aisle_id: {not: [25, 30]}, # not in