Functions
Functions( [database] )
Functions( )
ScopedFunctions( database )
Functions( [database] )
Functions( [database] )
functions( [database] )
Functions( [database] )
Description
The Functions
function when executed with Paginate
returns an
array of References for all user-defined functions in the database
specified. If a child database
is not specified, the returned function
references all belong to the current database.
When a child Also, Go does not support optional function parameters, nor function
overloading. To specify a child |
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
Optional - A Reference to a child database. If not specified, the current database is used. A Reference to a child database. Optional - A Reference to a child database. If not specified, the current database is used. Optional - A Reference to a child database. If not specified, the current database is used. Optional - A Reference to a child database. If not specified, the current database is used. Optional - A Reference to a child database. If not specified, the current database is used. Optional - A Reference to a child database. If not specified, the current database is used. |
Examples
-
The following query lists the References for any user-defined functions (up to the pagination limit) in the current database:
ObjectV(data: Arr(RefV(id = "increment", collection = RefV(id = "functions")), RefV(id = "double", collection = RefV(id = "functions")), RefV(id = "submit_order", collection = RefV(id = "functions"))))
map[data:[{increment 0xc0000b71d0 0xc0000b71d0 <nil>} {double 0xc0000b72c0 0xc0000b72c0 <nil>} {submit_order 0xc0000b73b0 0xc0000b73b0 <nil>}]]
{data: [ref(id = "increment", collection = ref(id = "functions")), ref(id = "double", collection = ref(id = "functions")), ref(id = "submit_order", collection = ref(id = "functions"))]}
{ data: [ Function("increment"), Function("double"), Function("submit_order") ] }
{'data': [Ref(id=increment, collection=Ref(id=functions)), Ref(id=double, collection=Ref(id=functions)), Ref(id=submit_order, collection=Ref(id=functions))]}
{ data: [ Function("increment"), Function("double"), Function("submit_order") ] }
-
The following query lists the References for any user-defined functions (up to the pagination limit) in a child database named "child_db":
ObjectV(data: Arr())
map[data:[]]
{data: []}
{ data: [] }
{'data': []}
{ data: [] }
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!