Skip to main content

FunctionCall

API reference

An active function call.

Implements Node

id: ID!

A unique identifier for this FunctionCall.

name: String!

The name of the function being called.

parent: JSON!

The value of the parent object of the function being called. If the function is top-level to the module, this is always an empty object.

parentName: String!

The name of the parent object of the function being called. If the function is top-level to the module, this is the name of the module.

returnError(error: Error!): Void

Return an error from the function.

error: Error!

The error to return.

returnValue(value: JSON!): Void

Set the return value of the function call to the provided value.

value: JSON!

JSON serialization of the return value.

inputArgs: [FunctionCallArgValue!]!

The argument values the function is being invoked with.

References

Returned by