Skip to content

feat(event-handler): support onQuery and onMutation handlers #4111

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
merged 8 commits into from
Jul 2, 2025

Conversation

dreamorosi
Copy link
Contributor

Summary

Changes

Please provide a summary of what's being changed

This PR adds two new methods to the AppSyncGraphQLResolver to allow customers to easily register route handlers for queries and mutations respectively via onQuery() and onMutation().

These methods are mainly syntactic sugar as they use the more versatile resolver() method under the hood, and share the same route registry.

The PR also makes targeted updates to the types and folder structure to streamline and reduce duplication. Unit tests were also updated to maintain 100% coverage.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #4110


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi dreamorosi requested a review from svozza July 1, 2025 21:47
@dreamorosi dreamorosi self-assigned this Jul 1, 2025
@boring-cyborg boring-cyborg bot added dependencies Changes that touch dependencies, e.g. Dependabot, etc. event-handler This item relates to the Event Handler Utility tests PRs that add or change tests labels Jul 1, 2025
@pull-request-size pull-request-size bot added the size/XL PRs between 500-999 LOC, often PRs that grown with feedback label Jul 1, 2025
Copy link

sonarqubecloud bot commented Jul 1, 2025

@dreamorosi dreamorosi merged commit 263db2d into main Jul 2, 2025
46 checks passed
@dreamorosi dreamorosi deleted the feat/refactor_appsync_graphql branch July 2, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Changes that touch dependencies, e.g. Dependabot, etc. event-handler This item relates to the Event Handler Utility size/XL PRs between 500-999 LOC, often PRs that grown with feedback tests PRs that add or change tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: support onQuery and onMutation resolvers in AppSync GraphQL
2 participants