Basically, I am getting the wrong results from a UDF I’ve created.
The UDF in javascript contains this part:
q.GTE(
q.Now(),
q.Var('from')
)
and the request output for that part is:
"expr":{"gte":[{"now":null},{"var":"from"}]}
However, when I inspect it in Fauna dashboard, I see:
GTE(Time("2001-01-21T10:10:58.665120Z"), Var("from"))
Why?
I changed the function to use Now()
in the dashboard, and suddenly the UDF works as expected.
Btw, JS driver is 3.0.1. I’ll try to upgrade and see the results.