Frage

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?

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top