graphql-python / graphql-python/sanic-graphql
How to handle response middleware?
Đang mở
- Ngôn ngữ chính
- Python
- Star
- 148
- Fork
- 17
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.