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