Access external GraphQL data sources from your functions
graphql
namespace from the SDK:
graphql
namespace are below, organized by category.
@json
.All types, including classes, base classes, and field types must be JSON
serializable. You can also use built-in types such as strings, numbers, arrays,
and maps.Variables
object
instead. This can help to prevent against injection attacks and other security
vulnerabilities.Variables
object for more information.Variables
object and call the set
method
for each variable you want to include. Then pass the object to the execute
function.
@json
.execute
function calls this automatically when you pass a
Variables
object. You typically don’t need to call it directly.errors
or data
is present, depending on the result of the query.
ErrorResult
object. If there are
no errors, this field is null
.execute
function. If data
is absent due to errors, this field is null
.CodeLocation
objects that point to the specific
location of the error in the GraphQL statement.