Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30328

Add a type that enumerates repository languages for arguments

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: Platform > GraphQL
    • Labels:
      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            bertrand.dunogier@ez.no Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: