Call
Copied!
Call( function, arguments, ... )
Description
The Call
function executes a user-defined function previously defined
with the CreateFunction function.
The Call
function takes a variable length list of arguments which must
match the type and number of the function being called. These arguments
are provided to the function being executed by Call
.
Examples
The following example executes a user-defined function with the associated arguments:
Copied!
client.query(q.Call(q.Function('increment'), 2))
.then((ret) => console.log(ret))
3
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!