lib/mongo-parser-rb/query.rb
# Parse a query, returning an initialized MongoParserRB::Query object.
#
# @param raw_query [Hash] the hash to parse
# @return [MongoParserRB::Query] initialized query object
Parse a query, returning an initialized MongoParserRB::Query object.
Parse a query returning an initialized MongoParserRB :: Query object .
def parse_root_expression(query, field = nil)
      Expression.new(:$and, query.to_a.map do |(key, value)|
        parse_sub_expression(key, value, field)
      end)
    end
def parse_root_expression ( query , field = nil ) Expression . new ( :$and , query . to_a . map do | ( key , value ) | parse_sub_expression ( key , value , field ) end ) end
Parse a query, returning an initialized MongoParserRB::Query object.
Parse a query returning an initialized MongoParserRB :: Query object .
initialized query object
initialized query object
MongoParserRB::Query
query
<not_specific>
field
<not_specific>
raw_query
<not_specific>
the hash to parse
the hash to parse