Function.byName()
Get a user-defined Function document by its name.
Return value
One of:
Type | Description |
---|---|
FunctionDef |
Function object. See Function document definition. |
NullFunctionDef |
UDF document doesn’t exist or is inaccessible. |
Examples
-
Fetch a UDF when it exists and is accessible:
{ name: "Double", coll: Function, ts: Time("2022-10-25T21:01:19.310Z"), body: "(x) => x + x" }
-
When the UDF document doesn’t exist or is inaccessible:
null
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!