attrs["user1_id"] will not work with %{user1_id: 1, user2_id: 2} as the first expression uses string keys while the map is defined with atom keys.
attrs["user1_id"] will not work with %{user1_id: 1, user2_id: 2} as the first expression uses string keys while the map is defined with atom keys.