powertools-lambda-python
powertools-lambda-python copied to clipboard
Feature request: Enable middleware functionality for AppSyncResolver
Use case
The middleware functionality for the event handler REST APIs provides a really nice way to work with requests but the AppSyncResolver does not have the same API available to it.
Solution/User Experience
Ideally, the AppSyncResolver would have the same dev experience as the REST API middlewares:
app = AppSyncResolver(middlewares=[my_global_middleware])
@app.resolver(type_name="Query", field_name="getTodo", middlewares=[another_middleware])
Alternative solutions
No response
Acknowledgment
- [X] This feature request meets Powertools for AWS Lambda (Python) Tenets
- [X] Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET