Method: Mongory::QueryBuilder#where

Defined in:
lib/mongory/query_builder.rb

#where(condition) ⇒ QueryBuilder

Adds a condition to filter records using the given condition. This is an alias for and.

Parameters:

  • condition (Hash)

    the condition to add

Returns:



100
101
102
# File 'lib/mongory/query_builder.rb', line 100

def where(condition)
  self.and(condition)
end