-
Notifications
You must be signed in to change notification settings - Fork 165
feat(event-handler): add support for AppSync GraphQL batch resolvers #4218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
svozza
merged 60 commits into
aws-powertools:main
from
arnabrahman:4100-appsync-graphql-batch
Jul 31, 2025
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
278901e
feat: batch resolver type for appsync-graphql
arnabrahman 7b279a7
feat: update default values for GraphQlBatchRouteOptions
arnabrahman aa5c7ab
fix: correct parameter type for BatchResolverAggregateHandlerFn
arnabrahman 054d693
feat: implement batch resolver functionality in Router and AppSyncGra…
arnabrahman 47717af
refactor: enhance type definitions for RouteHandlerOptions and GraphQ…
arnabrahman 079354b
fix: simplify aggregate and raiseOnError default value handling in ba…
arnabrahman 00c62f5
feat: add InvalidBatchResponseException and enhance error handling in…
arnabrahman 8160cc1
fix: clarify error message for missing batch resolvers in AppSyncGrap…
arnabrahman 0a1026c
test: batch resolver unit tests for graphql
arnabrahman c6259ef
refactor: enhance GraphQlBatchRouteOptions to clarify aggregation and…
arnabrahman 0f404f9
fix: improve error handling and logging for batch events in AppSyncGr…
arnabrahman 192015e
fix: improve batch event validation in AppSyncGraphQLResolver
arnabrahman e976acb
refactor: streamline GraphQlBatchRouteOptions type definition for cla…
arnabrahman a00f66c
feat: add batch resolver support and detailed documentation for AppSy…
arnabrahman 9ba7e66
feat: add batch resolver execution method with detailed documentation…
arnabrahman b5e24b2
refactor: remove typing of aggregate handler
arnabrahman af35ca6
refactor: specify type parameters for resolvers in MockRouteHandlerRe…
arnabrahman edffb08
feat: add detailed documentation for batch resolver registration in R…
arnabrahman 094fcb1
feat: add batch resolver registration methods for query and mutation …
arnabrahman 3610c9d
fix: correct documentation for InvalidBatchResponseException in error…
arnabrahman f01d34e
refactor: simplify GraphQlBatchRouteOptions type definition
arnabrahman 29de937
fix: update error message for batch resolver response validation
arnabrahman 22a0a4c
fix: update loop index variable for event processing in AppSyncGraphQ…
arnabrahman 587818f
fix: clarify template parameter descriptions in GraphQlBatchRouteOptions
arnabrahman 92d0768
docs: add example for batch resolver usage in AppSyncGraphQLResolver
arnabrahman 0dcc54c
fix: update batch resolver to use event.arguments.id for ID extraction
arnabrahman 8df5f8c
fix: remove unused import and optimize event processing loop in AppSy…
arnabrahman 1220f19
fix: parameterize BatchResolverAggregateHandlerFn and BatchResolverSy…
arnabrahman fa88d05
fix: clarify GraphQlBatchRouteOptions template parameter behavior reg…
arnabrahman 1292348
fix: update batchResolver, onBatchQuery, and onBatchMutation signatur…
arnabrahman 1311ced
fix: enhance type safety in batch resolver examples by using AppSyncR…
arnabrahman 27a2d3a
fix: enhance documentation for batchResolver with detailed examples a…
arnabrahman c5e5bbb
fix: enhance documentation for batchResolver and onBatchQuery/onBatch…
arnabrahman 0012c59
fix: improve type safety in handleBatchGet by specifying event argume…
arnabrahman 2de1c82
fix: update batch event handling to improve error logging and simplif…
arnabrahman 0ba0496
fix: enhance type safety in batch resolver and related handlers by in…
arnabrahman 2457ee9
fix: rename parameter for clarity in BatchResolverAggregateHandlerFn …
arnabrahman 321b0e1
fix: enhance type safety in BatchResolverAggregateHandlerFn and Batch…
arnabrahman 1fc0ce7
fix: update error handling in #withErrorHandling to return formatted …
arnabrahman 1f95054
fix: enhance type safety in BatchResolverHandler and RouteHandlerOpti…
arnabrahman 2d03dd5
fix: enhance type safety in batch resolver methods by allowing TSourc…
arnabrahman c198ed6
fix: enhance type safety in batch resolver examples by specifying gen…
arnabrahman b02c5b6
fix: enhance type safety in batch resolver types by adding TSource pa…
arnabrahman a6fb353
fix: enhance type safety in batchResolver by specifying generic param…
arnabrahman 4c01357
fix: simplify type guard for AppSync GraphQL event by removing redund…
arnabrahman 22e79bc
fix: improve error handling by using event information in error messages
arnabrahman be731f0
fix: improve error handling by formatting error messages for better r…
arnabrahman 2ab33b9
fix: update type handling in AppSyncGraphQLResolver for improved clar…
arnabrahman d88a3b5
fix: clarify documentation for raiseOnError option in batch processing
arnabrahman 1f62336
fix: update documentation for raiseOnError option to clarify usage wi…
arnabrahman 9650d80
test: enhance AppSyncGraphQLResolver tests by verifying handler call …
arnabrahman 1f908cd
fix: add BatchResolverHandler type export to index
arnabrahman 5d9d1c4
fix: remove unused BatchResolverHandler type import in AppSyncGraphQL…
arnabrahman 3a75160
fix: update batch resolver scope to include raiseOnError and aggregat…
arnabrahman 66719eb
fix: update location names in Router tests for clarity
arnabrahman 6275b51
fix: rename raiseOnError option to throwOnError
arnabrahman 75684b7
fix: update log message for graceful error handling flag
arnabrahman 82701be
fix: refactor batchResolver tests to use dynamic throwOnError flag
arnabrahman 13ebb91
fix: correct batch event wording and refactor batch resolver test cas…
arnabrahman 43f5481
Merge branch 'main' into 4100-appsync-graphql-batch
svozza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.