Вопрос

It there a method that Ecto.Entity or Ecto.Model provides that will return a Dict of the fields defined in the model and their values?

Это было полезно?

Решение

Yes, to_keywords (it is the same function used by records).

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top