Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parler with Graphene #307

Open
MaehMaeh opened this issue Dec 10, 2021 · 0 comments
Open

Parler with Graphene #307

MaehMaeh opened this issue Dec 10, 2021 · 0 comments

Comments

@MaehMaeh
Copy link

Is there a possibility to use Parler with Graphene? Has anyone here already had experience with this? Is there perhaps an example for this?

I can get a single query to return the correct translation. The problem is that I actually have to pass the language in every query, even if the query itself has no language field, because I don't know if a subquery might not contain a language field.

Example:

{
  articleStatus(id: 1, languageCode: "en") {
    ... on ArticleStatus { name }
    ... on ProblemInterface { message }
  }
}

Works!

{
  article(id: 1, languageCode: "en") {
    ... on Article {
      id
      articleStatus {
        ... on ArticleStatus { name }
      }
    }
    ... on ProblemInterface { message }
  }
}

Here I don't know how it can work that I get back the ArticleStatus translated when I choose a different language than the fallback language. Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant