mongoid/origin — Issue #26: Handle aliases in selection.
Author: durran
Created: 2012-02-12 10:58:35+00:00
State: open
Labels: feature

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

```ruby
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