Here is a contrived example UDF body:
Query(Lambda([],
Let(
{ self: Select("data", Get(Function("doStuff"))) },
Documents(Select("Account", Var("self")))
)
))
If there was a special function to reference the current UDF (e.g. CurrentUDF()
), this could be made more generic:
Query(Lambda([],
Let(
{ self: Select("data", Get(CurrentUDF())) },
Documents(Select("Account", Var("self")))
)
))
context: I’m playing around with a tool that where it could be convenient to define a UDF body before the name of the function is known. I’d like a “higher”, UDF-making UDF to be able to do this and it gets messy.
So, this is a thought – a low priority quality of life idea.