Method: Mongory::QueryBuilder#initialize
- Defined in:
- lib/mongory/query_builder.rb
#initialize(records, context: Utils::Context.new) ⇒ QueryBuilder
Initializes a new query builder with the given record set.
33 34 35 36 37 |
# File 'lib/mongory/query_builder.rb', line 33 def initialize(records, context: Utils::Context.new) @records = records @context = context set_matcher end |