The addFunctionsToAllowList() GraphQL mutation is used to enable functions for use with a specified language version. This field is not yet available. It's described here as a preview and is used only for internal testing.

This is an experimental feature, not ready for production.

For more information on functions, see the Function Syntax reference page.

Syntax

Below is the syntax for the addFunctionsToAllowList() mutation field:

graphql
addFunctionsToAllowList(
      input: FunctionListInput!
    ): boolean!

For the input (i.e., addFunctionsToAllowList()), there is one parameter, a boolean, that may be given: Whether to enable functions for use with a specified language version. This is a preview and for interal testing. See FunctionListInput below.

Given Data Types

Within the parameters of the addFunctionsToAllowList input, there is the FunctionListInput mutation datatype, which has a couple of parameters.

Table: FunctionListInput

ParameterTypeRequired[a]DefaultDescription
versionLanguageVersionEnumyes The version of the LogScale query language to use. The LanguageVersionEnum choices are legacy, xdr1, or xdrdetects1.
functions[string]yes The list of functions.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.