Ash FrameworkAF
Ash Framework7mo ago
15 replies
Marco Dell'Olio

Runtime values in Filter

I'm trying to achieve the following ecto query in filters

  def inserted_today(query, user) do
    query
    |> where([c], c.inserted_at >= ^App.DateTime.beginning_of_day_utc(user.timezone))
  end


I've been trying, expression, lazy, and MFA without success
Was this page helpful?