MrThearMan / graphene-django-extensions

Extensions for writing GraphQL schemas with the graphene-django library with less boilerplate.
https://pypi.org/project/graphene-django-extensions/
MIT License
4 stars 0 forks source link

Mutation Lanuage #65

Open serdtsekol1 opened 2 weeks ago

serdtsekol1 commented 2 weeks ago

I have read the docs thoroughly before making this feature request.

I have read through other open issues, and my issue is not a duplicate.

Description

It would be good if the input and output data in mutations had the capability to handle multilingual fields in the same way as done here #60 for queries. So that the mutation would look something like this:

mutation MyMutation {
  updateProduct2(input: {pk: 3, name:  [
  {language: "uk", "value": "test uk"},
  {language: "en", "value": "test en"},
  ]}) {
    pk
     name
     nameTranslations {
            language
            value
     }
  }
}

Motivation

This functionality will help people who will be developing multilingual websites with an admin panel.

Would you like to solve this issue yourself with a pull request?

No

MrThearMan commented 1 week ago

Hi, I'll be on summer holiday for the month of July, and probably won't have the time to look into this until at least the middle of August. If you need something before then, I might have the time to review a PR and merge that.