Selecting virtual field in Ecto
In you Ecto model, you might have some virtual fields that needs to be computed when you select
from your database.
The select
option of from
will override the whole set of returned fields. Which means if you do something like: