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 $where selection #21

Closed durran closed 12 years ago

durran commented 12 years ago

Syntax:

  Model.where("this.field > 4")
  Model.query("$where" => "this.field > 4")