graphql-python / graphql-python/graphql-server

Typo in Flask view context

未关闭
#137 3 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
134
派生
70
PR 合并指标
30 天内没有已合并 PR

描述

Hi all, just a small one:

The line https://github.com/graphql-python/graphql-server/blob/2d5ac9539307d6db22b3364a61063e050c3f20b9/src/graphql_server/flask/views.py#L145 creates the context with `operationName` but the template https://github.com/graphql-python/graphql-server/blob/2d5ac9539307d6db22b3364a61063e050c3f20b9/src/graphql_server/static/graphiql.html#L199 expects `operation_name`. Probably `request_data.to_template_context()` is meant to be used which does use `operation_name`: https://github.com/graphql-python/graphql-server/blob/2d5ac9539307d6db22b3364a61063e050c3f20b9/src/graphql_server/http/__init__.py#L74

Thanks!

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。