graphql-python / graphql-python/sanic-graphql
How to handle response middleware?
Offen
- Vorherrschende Sprache
- Python
- Sterne
- 148
- Forks
- 17
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.