Details
-
Story
-
Resolution: Fixed
-
High
-
None
-
None
Description
At the moment, when a language is used as an argument, the language code as a string is used. It is error prone, and the developer needs to look up the existing languages.
This can be improved by generating an enum, RepositoryLanguages, used as the type for language arguments.
Example:
{
_repository {
contentType(identifier: "folder") {
name(language: eng_GB)
}
}
}
Note: it uses eng_GB as the enum name, as hyphens aren't allowed, but the underlying value is eng-GB.