Skip to content
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

Use new resolver metadata for Document and Hash resolvers. #173

Draft
wants to merge 3 commits into
base: myron/improve-perf/runtime-metadata-overrides
Choose a base branch
from

Conversation

myronmarston
Copy link
Collaborator

This moves us one step closer to being able to use the GraphQL gem's native resolver disaptching.

Previously, it handled both the `Hash` and `Document` cases, via a `case`
statement on `object`. Instead, we can handle it with two separate
resolvers. The `Document` resolver simply delegates to the `Hash`
resolver after extracting the hash `payload`.

We want to minimize the logic that needs to happen to resolve each
field, so it's nice to eliminate this `case` statement.
This allows us to set runtime metadata overrides in multiple spots and
trust that the merged result will be used.
This moves us one step closer to being able to use the GraphQL gem's native resolver disaptching.
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@myronmarston myronmarston force-pushed the myron/improve-perf/runtime-metadata-overrides branch from 0425911 to 4aba247 Compare February 10, 2025 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants