The GraphQLView and its async version allow overriding the template file. However, the loading of the template is incorrect, resulting in JSON.parse("") // empty string , because the variable is already replaced.
The loading in the try section, erronously calls render_to_string and sticks the result into a Template class. However, render_to_string already renders the entire template, replacing its variables.
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The GraphQLView and its async version allow overriding the template file. However, the loading of the template is incorrect, resulting in
JSON.parse("") // empty string
, because the variable is already replaced.Additional Context
In the view we see the following code:
The loading in the try section, erronously calls render_to_string and sticks the result into a Template class. However, render_to_string already renders the entire template, replacing its variables.
Upvote & Fund