This would have worked too
|> Enum.map(& %{id: &1.id, name: &1.name})
BTW “id” is not equal to id:, but the working code uses :id…
This would have worked too
|> Enum.map(& %{id: &1.id, name: &1.name})
BTW “id” is not equal to id:, but the working code uses :id…