The languageRestrictions() GraphQL query used to get language restrictions for language version. This field is not yet available. It's described here as a preview and is used only for internal testing.

Syntax

Below is the syntax for the languageRestrictions() query field:

languageRestrictions(version: LanguageVersionEnum!): QueryLanguageRestriction!

Given and Returned Datatypes

The given datatype LanguageVersionEnum is an enumerated list of choices: legacy, xdr1, or xdrdetects1. The returned datatype QueryLanguageRestriction has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: QueryLanguageRestriction

ParameterTypeRequired[a]DefaultDescription
versionLanguageVersionyes The query language version used (see LanguageVersion Table).
allowedFunctions[string]yes The list of functions allowed in the language version.
enabledbooleanyes Whether the query language restriction is enabled.

[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.