Commit 0257c33a9b2af17756e3a84aa4d1604d6f334155

Authored by Andrew Kane
1 parent d38daf69

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 46 where: {
47 47 expires_at: {gt: Time.now}, # lt, gte, lte also available
48 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 52 or: [
52 53 {in_stock: true},
53 54 {backordered: true}
... ...