Function object provides methods to query or create UDF documents.
Function.create() method can optionally specify a built-in or
user-defined Role. The UDF runs
with the privileges of the
role field. A UDF without a
role assigned has
the same privileges as the function caller. While not specifying a
create() may be acceptable, it can result in an ambiguous security policy.
It is prudent to ensure that every UDF has an associated role.
Document definition: Function document definition
See User-defined functions in the migration document for FQL v10 and FQL v4 UDF interoperability.
Dynamically get the Function by name.
Get a user-defined Function document by its name.
Create a user-defined Function document.
Get the first matching accessible user-defined Function document.
Get the name of the Function collection as a string.
Is this article helpful?
Tell Fauna how the article can be improved:
Thank you for your feedback!