Question : phoenix ecto query bindingess
Answered by : nguyen-quang-huy
where = [category: "fresh and new"]
order_by = [desc: :published_at]
select = [:id, :title, :body]
from Post, where: ^where, order_by: ^order_by, select: ^select
Source : https://hexdocs.pm/ecto/Ecto.Query.html | Last Update : Fri, 07 Jan 22