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

    • Icon: Story Story
    • Resolution: Fixed
    • Icon: High High
    • 2.5.0
    • None
    • Platform > GraphQL
    • 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

            Unassigned Unassigned
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: