mongoid / origin

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

Handle aliases in selection. #26

Closed durran closed 12 years ago

durran commented 12 years ago

When fields have aliases, like id in Mongoid, or when a field is defined as:

field :name, type: String, as: "full_name"

Origin should convert the aliases to the names of the fields in the database.

See:

https://github.com/mongoid/mongoid/issues/1682 https://github.com/mongoid/mongoid/issues/1569

xpepermint commented 12 years ago

+1 :)

al commented 12 years ago

+1