Yes, to_keywords
(it is the same function used by records).
سؤال
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?
المحلول
لا تنتمي إلى StackOverflow
سؤال
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).