Skip to content

Setting Types: Setting query does not accept locale as argument and translations type does not consist all locale data. #26

Description

@rameshlohala

when querying setting, it always assumes 1 locale as default and in the translations array it excludes data for that default locale. The api should return all translations. and also the setting query should accept locale argument in order to return the fields as translated data according to the locale.

approached query (assuming there are 2 locales ["en", "fr"])

{
  Setting(locale: en) {
    locale
    title
    content
    translations (locales: null) {
      locale
      title
      content
    }
  }
}

expected result:

{
  "data": {
    "Setting": {
      "locale": "en",
      "title": "title-en",
      "content": "content-en",
      "translations": [
        {
          "locale": "en",
          "title": "title",
          "content": "content"
        },
        {
          "locale": "fr",
          "title": "title-fr",
          "content": "content-fr"
        }
      ]
    }
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions