mongoid / origin

A Ruby DSL for building MongoDB queries
http://mongoid.org/en/origin/index.html
MIT License
62 stars 29 forks source link

Add $elemMatch selection #19

Closed durran closed 12 years ago

durran commented 12 years ago

Syntax:

  Model.elem_match(field: { a: 1, b: 5 })
  Model.query(:field.elem_match => { a: 1, b: 5 })