graphql-python / graphql-python/graphql-server

No middleware parameter

未關閉
#139 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
134
分支
70
PR 合併指標
30 天內沒有已合併 PR

描述

The documentation about `GraphQLView` list `middleware` as a parameter, but it doesn't works:

```
TypeError: BaseGraphQLView.__init__() got an unexpected keyword argument 'middleware'
```

Looking at the code in `graphql_server/flask/views.py` confirms that the parameter doesn't exists. Is there another way to pass middlewares?

貢獻指南

開啟貢獻指南

研究方向

先閱讀 GraphQLView 文件和 graphql_server/flask/views.py,issue 指出兩者對 middleware 參數的說明不一致。判斷預期的解決方案是修正文檔,還是支援文件中所描述的參數;當文件與 BaseGraphQLView 的行為一致,且回報的 TypeError 情況已獲處理時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
flask, graphql, python
領域
api, backend
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。