Hi!
I’m using a query builder which I built based on AshPhoenix.FilterForm.
There I am dynamically creating filter-predicates with the help of Ash.Expr
this works fine for attributes, aggregates, calculations (w/o arguments):
e.g:
path=[]
field="full_name"
value="Zach Daniel"
f=Ash.Query.filter(resource, Ash.Expr.expr(^Ash.Expr.ref(path, field)) == ^value)
But what if I need to add calculation arguments with this syntax?
Again, this works fine if I hard-code calculation name and arguments:
value="Zach Daniel"
separator=" "
f=Ash.Query.filter(resource, full_name(separator: ^separator) == ^value )
➜ But how could I pass the calculation arguments with the Ash.Expr syntax above?