Call
Not available in this language yet.
Call( function, arguments, ... )
Call( function, arguments, ... )
Call( function, arguments, ... )
Not available in this language yet.
Not available in this language yet.
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:
Not available in this language yet.
result, err := client.Query(
f.Call("increment", 2))
if err != nil {
fmt.Fprintln(os.Stderr, err)
} else {
fmt.Println(result)
}
3
System.out.println(
client.query(
Call(Value("increment"), Value(2))
).get());
3
client.query(
q.Call('increment', 2)
)
.then((ret) => console.log(ret))
.catch((err) => console.error('Error: %s', err))
3
Not available in this language yet.
Not available in this language yet.
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!