I'm having issues interpolating a list of UUIDs to perform an in query.
Ecto.Adapters.SQL.query!(Repo, "
WHERE
some_id IN ($1)
", [some_list_of_ids])
This gives me an error ** (ArgumentError) Postgrex expected a binary of 16 bytes, got ["4ca72ee7-61e2-4450-8dac-bdd7cf6b3df9", "83640dcc-9674-462c-881b-0ce2ed8f3fba",.... I still get this error even if I cast the UUIDs to binary with either UUID.string_to_binary!
How can I interpolate this?