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 $and selection #16

Closed durran closed 13 years ago

durran commented 13 years ago

Syntax:

  Model.and(name: "test", title: "sir")
  Model.query(:field.and => [ { name: "test" }, { title: "sir" } ])