Answers for "phoenix ecto query expression"

0

phoenix ecto query expression

def with_minimum(age, height_ft) do
  from u in "users",
    where: u.age > ^age and u.height > ^(height_ft * 3.28),
    select: u.name
end

with_minimum(18, 5.0)
Posted by: Guest on December-31-2021

Browse Popular Code Answers by Language