Elixir/Phoenix map for the channels payload
问题 Well, I am looking for a good way to pass multiple elements (same column name) that I've retrieved from db into the channels payload. For example: ppl = Repo.all(People) will return two results with id: 1, name: Mike , id: 2, name: John . The name: (column name) is used for both Mike and John, but when passing through channels payload, I can only pass one map, where can't have both name: John, name: Mike at the same time. As I understood channels, we use a map(payload) that is send back to