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

Feature request: GraphQL API Event Handler

Open hjgraca opened this issue 6 months ago • 0 comments

Use case

Related to the issue and feature request in Typescript https://github.com/aws-powertools/powertools-lambda-typescript/issues/1166

Now that .NET has an Event Handler for AppSync we should also support GraphQL Add the ability to register single resolvers for AppSync GraphQL API.

Solution/User Experience

GraphQL API handler in Lambda Powertools for Python has a resolver library which does the nested resolution inside a single lambda function and instead of creating the abstraction on infrastructure level, as AppSync does, it creates it on source code level. This resolution can be done thanks to informations from $ctx.info.

This way lambda resolvers would be only for top-level Mutation/Query fields and the rest would be done inside lambda function(s).

Alternative solutions


Acknowledgment

hjgraca avatar Jul 01 '25 09:07 hjgraca