I have an Ecto schema that has a
:map type and another field that is a list of integers (
I’m wondering what a good form field would be in order to expose these through a form, so they can be updated from the UI and how would you handle that from the changeset?
You’re probably going to want to use inputs_for.
You can also use a text input for arrays and accept a comma separated list. You split and parse it before sending it deeper down your stack.
Check the field exists and it is one of embeds_one, embeds_many, has_one, has_many, belongs_to or many_to_many.