- Issue created by @rajghai
- 🇫🇮Finland vermario
Hi!
I had the same issue, and this is a problem of the graphql module, not the grapql_compose one.
Development for the grapqhl module is happening on github, so I made a pull request there: https://github.com/drupal-graphql/graphql/pull/1388
You can add those changes as a patch in your composer.json like this:
"drupal/graphql" : { "drupal-graphql#1323: Add check for translation (from Github)": "https://patch-diff.githubusercontent.com/raw/drupal-graphql/graphql/pull/1388.patch" },
For me, this fixes the problem.
- Status changed to Closed: won't fix
11 months ago 3:46am 17 January 2024 - 🇦🇺Australia almunnings Melbourne, 🇦🇺
Yeah this is an upstream issue, thanks for looking into it!
The
entity_load_by_uuid_or_id
producer in graphql_compose passes off toentity_load_by_uuid
andentity_load
data producers, which come from the upstream GraphQL project.Looks like they're not checking `$entity->hasTranslation($language)`.
Closing with: