Method: Mongory::QueryBuilder#in
- Defined in:
- lib/mongory/query_builder.rb
#in(condition) ⇒ QueryBuilder
Adds an $in condition to the query.
Matches records where the field value is in the given array.
154 155 156 |
# File 'lib/mongory/query_builder.rb', line 154 def in(condition) self.and(wrap_values_with_key(condition, '$in')) end |