API Stability Preview

The languageRestrictionsEnable() GraphQL mutation is used to enable or disable language restrictions for specified 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 languageRestrictionsEnable() mutation field:

graphql
languageRestrictionsEnable(
     input: EnabledInput!
   ): boolean!

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

Show:
graphql
mutation {
  languageRestrictionsEnable ( input: 
    { version: legacy,
      enabled: true }
  )
}
Example Responses
Show:
json
{
  "data": {
    "languageRestrictionsEnable": true
  }
}

Given Datatypes

For EnabledInput, there are a couple of parameters. Below is a list of them along with a description of each:

Table: EnabledInput

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
enabledbooleanyes PreviewWhether it's enabled or not.
versionLanguageVersionEnumyes PreviewThe version of Human language to use: legacy, xdr1, or xdrdetects1. If non-null, it will be a version known by the current LogScale installation. See LanguageVersionEnum Table.