Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
8c91a44
feat: implement `RouteHandlerRegistry` for managing GraphQL route han…
arnabrahman May 25, 2025
34e5548
feat: add type guard for AppSync GraphQL event validation
arnabrahman May 25, 2025
d98d507
refactor: simplify handler function signatures and update type defini…
arnabrahman May 25, 2025
a2d4c7a
refactor: remove wrong `result` property check from AppSync GraphQL e…
arnabrahman May 25, 2025
0134b3d
feat: implement Router class for managing `Query` events for appsync …
arnabrahman May 28, 2025
84d55d4
feat: add `onMutation` method for handling GraphQL Mutation events in…
arnabrahman May 28, 2025
febd4ce
feat: implement AppSyncGraphQLResolver class to handle onQuery and on…
arnabrahman May 28, 2025
3e5d504
doc: `#executeSingleResolver` function
arnabrahman May 28, 2025
17a0c55
feat: add warning for unimplemented batch resolvers in AppSyncGraphQL…
arnabrahman May 28, 2025
34d8c13
feat: enhance `RouteHandlerRegistry` to log handler registration and …
arnabrahman May 29, 2025
72db338
feat: add `onQueryEventFactory` and `onMutationEventFactory` to creat…
arnabrahman May 29, 2025
1989c83
feat: add unit tests for `AppSyncGraphQLResolver` class to validate e…
arnabrahman May 29, 2025
88723eb
feat: add unit tests for `RouteHandlerRegistry` to validate handler r…
arnabrahman May 29, 2025
a1a0d28
feat: add unit tests for `Router` class to validate resolver registra…
arnabrahman May 29, 2025
376bfae
feat: add test for nested resolvers registration using the decorator …
arnabrahman May 29, 2025
0681850
feat: enhance documentation for `resolve` method in `AppSyncGraphQLRe…
arnabrahman Jun 1, 2025
c763cbc
chore: warning message for batch resolver
arnabrahman Jun 1, 2025
1387c38
fix: return query handler if found
arnabrahman Jun 1, 2025
41c2945
fix: correct warning message for batch resolver in AppSyncGraphQLReso…
arnabrahman Jun 1, 2025
a0354f3
fix: update debug messages to reflect resolver registration format in…
arnabrahman Jun 1, 2025
59f02db
fix: update resolver not found messages for consistency in AppSyncGra…
arnabrahman Jun 1, 2025
2c78894
fix: doc for Router
arnabrahman Jun 1, 2025
4a5ef0a
refactor: remove unused cache and warning set from `RouteHandlerRegis…
arnabrahman Jun 1, 2025
2d9ec9a
fix: update documentation for resolve method in RouteHandlerRegistry
arnabrahman Jun 1, 2025
ff97740
refactor: remove redundant test for cached route handler evaluation i…
arnabrahman Jun 1, 2025
86ea83f
fix: update import path for Router in Router.test.ts
arnabrahman Jun 1, 2025
b7c4a9b
fix: update debug messages to include event type in RouteHandlerRegis…
arnabrahman Jun 1, 2025
6587a7e
fix: update terminology from "handler" to "resolver" in RouteHandlerR…
arnabrahman Jun 1, 2025
decddbe
fix: refactor logger initialization and import structure in Router an…
arnabrahman Jun 5, 2025
cc94ba2
fix: enhance type safety for onQuery and onMutation handlers with gen…
arnabrahman Jun 18, 2025
4df541a
refactor: unify resolver registration by replacing onQuery and onMuta…
arnabrahman Jun 18, 2025
a1dbfb8
test: replace onQuery and onMutation methods with a unified resolver …
arnabrahman Jun 18, 2025
4f927d8
fix: enhance type parameters for resolver handlers and route options
arnabrahman Jun 18, 2025
33ab42c
refactor: resolve PR feedbacks and replace onQuery and onMutation eve…
arnabrahman Jun 23, 2025
0802bbd
refactor: consolidate onQuery and onMutation event factories into a s…
arnabrahman Jun 23, 2025
3996555
feat: add scalar types utility functions and corresponding tests
arnabrahman Jun 23, 2025
b693f57
fix: remove unnecessary checks in isAppSyncGraphQLEvent type guard
arnabrahman Jun 23, 2025
67ab911
refactor: update AppSyncGraphQLResolver to use unified resolver metho…
arnabrahman Jun 23, 2025
50c40b2
refactor: update test descriptions for clarity on Query and Mutation …
arnabrahman Jun 23, 2025
45d18ee
feat: enhance AppSyncGraphQLResolver to pass context to resolver hand…
arnabrahman Jun 23, 2025
0817c6b
refactor: remove unused imports in AppSyncGraphQLResolver test file
arnabrahman Jun 23, 2025
8796757
fix: remove duplicate assertion for console.debug in AppSyncGraphQLRe…
arnabrahman Jun 26, 2025
cb9242e
refactor: replace AppSyncGraphQLEvent with AppSyncResolverEvent for i…
arnabrahman Jun 26, 2025
0d1c061
refactor: simplify development mode check by using isDevMode utility …
arnabrahman Jun 26, 2025
1e1c1ac
fix: update event type in resolver handler functions for improved typ…
arnabrahman Jun 26, 2025
f12cb21
feat: add optional parameters to resolve method for enhanced flexibility
arnabrahman Jun 26, 2025
a4860cc
doc: bind decorated methods to class instance in resolver handler
arnabrahman Jun 29, 2025
cf0b699
test: add scope preservation test for resolver decorator in AppSyncGr…
arnabrahman Jun 29, 2025
0871132
fix: handle optional descriptor value in resolver registration for im…
arnabrahman Jun 29, 2025
b8107d4
Merge branch 'main' into 1166-graphql-resolver
dreamorosi Jun 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: handle optional descriptor value in resolver registration for im…
…proved robustness
  • Loading branch information
arnabrahman committed Jun 29, 2025
commit 08711324a506a86c183841e6b4b35256c2650d14
4 changes: 2 additions & 2 deletions packages/event-handler/src/appsync-graphql/Router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ class Router {
}

const resolverOptions = handler;
return (_target, _propertyKey, descriptor: PropertyDescriptor) => {
return (target, _propertyKey, descriptor: PropertyDescriptor) => {
const { typeName = 'Query', fieldName } = resolverOptions;

this.resolverRegistry.register({
fieldName,
handler: descriptor.value,
handler: descriptor?.value,
typeName,
});

Expand Down
Loading