Your for comprehension returns a keyword list, that can be turned into a map using Enum.into/2 then added to the errors map, like: %{errors: resulting_map}
Sorry for lack of a better explanation and examples, I’m on my phone
Your for comprehension returns a keyword list, that can be turned into a map using Enum.into/2 then added to the errors map, like: %{errors: resulting_map}
Sorry for lack of a better explanation and examples, I’m on my phone