Phoenix Ecto Query Expression

[Solved] Phoenix Ecto Query Expression | Elixir - Code Explorer | yomemimo.com
Question : phoenix ecto query expression

Answered by : nguyen-quang-huy

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)

Source : https://hexdocs.pm/ecto/Ecto.Query.html | Last Update : Fri, 07 Jan 22

Answers related to phoenix ecto query expression

Code Explorer Popular Question For Elixir