graphql-python / graphql-python/sanic-graphql

How to handle response middleware?

オープン
#16 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
148
フォーク
17
PR マージ指標
30日以内にマージされた PR はありません

説明

While doing normal REST request, the following code works without issue
however, when it comes to GraphQL, it seems like the middleware only handles 'request' but not 'response'

```
@app.middleware('response')
async def print_on_response(request, response):
print("I print when a response is returned by the server")
```

Anyone knows if this is a missing feature, bug, or am I the one who's missing something?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。