Module: Volt::DataStore::MongoAdaptorClient::MongoArrayStore

Defined in:
app/mongo/lib/mongo_adaptor_client.rb

Instance Method Summary collapse

Instance Method Details

#order(sort) ⇒ Object

.sort is already a ruby method, so we use order instead



14
15
16
# File 'app/mongo/lib/mongo_adaptor_client.rb', line 14

def order(sort)
  add_query_part(:sort, sort)
end

#where(query = {}) ⇒ Object Also known as: find

Find takes a query object



8
9
10
# File 'app/mongo/lib/mongo_adaptor_client.rb', line 8

def where(query = {})
  add_query_part(:find, query)
end