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.
For the LanguageVersionEnum, you'd enter the
language version you want to check from the list in the Given
Datatype section further down this page. For the return values
you'd list the parameters you want like you can see in the example
here:
Show:
Raw
graphql
query{
languageRestrictions(version: legacy){version {
name
futureName
}, enabled, allowedFunctions}}
In the results shown here, you can see that
enabled returns false, meaning there are no
language restrictions for the legacy version.
Given Datatypes
The returned datatype LanguageVersionEnum
has a few choices. They're listed below:
Table: LanguageVersionEnum
Parameter
Type
Required
Default
Stability
Description
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.
The returned datatype
QueryLanguageRestriction has a few
parameters. Below is a list of them along with a description of
each:
Table: QueryLanguageRestriction
Parameter
Type
Required
Default
Stability
Description
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.