Question

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?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top