powertools-lambda-python icon indicating copy to clipboard operation
powertools-lambda-python copied to clipboard

Feature request: Enable middleware functionality for AppSyncResolver

Open TonySherman opened this issue 8 months ago • 0 comments

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

TonySherman avatar Jun 21 '24 15:06 TonySherman