API Stability Preview

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 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 internal testing. See FunctionListInput below.

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  addFunctionsToAllowList(input: 
     {version: legacy, 
      functions: ["count", "groupby", "in"] } )
}
Example Responses
Show:
json
{
  "data": {
    "addFunctionsToAllowList": true
  }
}

Given Data Types

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

Table: FunctionListInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 18, 2024
functions[string]yes PreviewThe list of functions.
versionLanguageVersionEnumyes PreviewThe version of the LogScale query language to use. See LanguageVersionEnum.