Runtime values in Filter
I'm trying to achieve the following ecto query in filters
I've been trying, expression, lazy, and MFA without success
I've been trying, expression, lazy, and MFA without success
def inserted_today(query, user) do
query
|> where([c], c.inserted_at >= ^App.DateTime.beginning_of_day_utc(user.timezone))
end