Commit 0257c33a9b2af17756e3a84aa4d1604d6f334155
1 parent
d38daf69
Exists in
master
and in
21 other branches
Added not in
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
README.md
@@ -46,8 +46,9 @@ Product.search "2% Milk", where: {in_stock: true}, limit: 10, offset: 50 | @@ -46,8 +46,9 @@ Product.search "2% Milk", where: {in_stock: true}, limit: 10, offset: 50 | ||
46 | where: { | 46 | where: { |
47 | expires_at: {gt: Time.now}, # lt, gte, lte also available | 47 | expires_at: {gt: Time.now}, # lt, gte, lte also available |
48 | orders_count: 1..10, # equivalent to {gte: 1, lte: 10} | 48 | orders_count: 1..10, # equivalent to {gte: 1, lte: 10} |
49 | - aisle_id: [10, 11], # in | ||
50 | - store_id: {not: 2}, | 49 | + aisle_id: [25, 30], # in |
50 | + store_id: {not: 2}, # not | ||
51 | + aisle_id: {not: [25, 30]} # not in | ||
51 | or: [ | 52 | or: [ |
52 | {in_stock: true}, | 53 | {in_stock: true}, |
53 | {backordered: true} | 54 | {backordered: true} |