Closed
Description
graphene-django 2 passes a lazy translated string as description
if that's what's used on the model. This way the descriptions can be translated to the language current at the introspection time.
But graphql-core 3 asserts the description is an str
, which forces choosing the translation at the definition time.
I couldn't find such type check in GraphQL.js - they just declare descriptions as strings, but don't check that (at least not in definition.js
).
Would it make sense to loosen that restriction a bit? Or even drop the type check, and add an str()
around descriptions in introspection?
I see similar issue would apply to deprecation_reason
- they are both human-readable text.