Ecto query to ensure unique ids

My coworker, who is apparently a lurker here, solved it, distinct/3 at the end of the query:

|> distinct([storefront_product], storefront_product.id)
1 Like