Module: MongoQueryGrammar::BinaryExpression6

Defined in:
lib/mongo-query/mongo_query_grammar.rb

Instance Method Summary collapse

Instance Method Details

#to_mongoObject



304
305
306
# File 'lib/mongo-query/mongo_query_grammar.rb', line 304

def to_mongo
  {field_name.to_mongo=>{ operator.to_mongo => value.to_mongo }}
end