-
Notifications
You must be signed in to change notification settings - Fork 2k
Add support for willResolveField and corresponding end handler.
#3988
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
abernix
merged 42 commits into
release-2.14.0
from
abernix/add-willResolveField-and-didResolveField
May 12, 2020
Merged
Changes from 3 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
fb99d93
Use named types for the "DidEnd" hooks.
abernix c3af619
Merge branch 'abernix/named-DidEnd-hooks' into abernix/graphql-extens…
abernix ab35c45
Add support for `willResolveField` and `didResolveField`.
abernix 835a68d
chore: Convert `schemaHash` from `string` to a faux-paque type.
abernix ab3855d
Introduce a plugin test harness to facilitate testing of plugins.
abernix dae59a5
Allow an optional `logger` to be passed into the test harness.
abernix 771683f
chore: Convert `schemaHash` from `string` to a faux-paque type. (#3989)
abernix eec87a6
Introduce an internal plugin test harness to facilitate plugin… (#3990)
abernix 0d31d1b
Apply suggestions from code review
abernix 4b59b02
Rejigger `ensurePluginInstantiation` to accommodate upcoming changes.
abernix 532e80f
Merge remote-tracking branch 'origin/abernix/graphql-extensions-depre…
abernix 6217f16
Merge branch 'abernix/fauxpaque-SchemaHash' into abernix/add-wrf
abernix 7ca6840
Correct typo of "precidence".
abernix cd754b0
noop: Remove trailing line.
abernix 11e885c
Relocate schema instrumentation to `utils/schemaInstrumentation.ts`.
abernix 231817e
Import `PersistedQueryOptions` from private, rather than public, API.
abernix a03587c
Merge remote-tracking branch 'origin/master' into abernix/add-willRes…
abernix ad9fefa
noop: Fix unrelated typing error in `runQuery.test.ts`.
abernix 6575625
Reintroduce genericism to `Dispatcher`.
abernix d5408ac
Correct recently added plugin types to exclude `void`.
abernix ab78e48
Introduce `BaseContext` and `DefaultContext`.
abernix 9b5be32
tests: Add additional plugin API hook tests.
abernix 4fa6ddd
Introduce a `callTargets` method on the `Dispatcher`.
abernix f2a7490
Switch `willResolveField` to be nested within `executionDidStart`.
abernix 60cd32d
tests: Introduce a test which demonstrates `fieldResolver` behavior.
abernix 129c255
tests: Add further life-cycle ordering tests for parsing and validation.
abernix 66d5869
refactor(tests): Better helpers for APQ tests in intgr. testsuite.
abernix 570bc4e
feat(plugins): Intro. `didResolveSource` to indicate availability of …
abernix fe971b3
docs: Add `didResolveSource` to plugin Mermaid workflow.
abernix 464e4f2
noop: Add comment indicating where to find `didResolveSource` APQ tests.
abernix 1356f00
Merge pull request #4076 from apollographql/abernix/add-didResolveSource
abernix 1121785
chore(types): Remove `DefaultContext` and just leverage `BaseContext`.
abernix a926b7e
Use an object, rather than positional params for `willResolveField`.
abernix b7ea447
Remove unreachable code after `callTargets` decomposition.
abernix 41b103e
tests: Expand on tests for `willResolveField` parameters.
abernix 6564081
Attach user-defined `fieldResolver` to context.
abernix f905eb1
Condense guards in `schemaInstrumentation`.
abernix db0e378
types: Improve `Dispatcher`'s `callTargets` and `invokeHookAsync` types.
abernix 52418a4
comment: Add note about typing question and reference to issue.
abernix 18d95fd
comment: Leave traces/suggestions about future work.
abernix 99d4fa7
Merge remote-tracking branch 'origin/master' into abernix/add-willRes…
abernix 1b98f87
Merge branch 'release-2.14.0' into abernix/add-willResolveField-and-d…
abernix 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
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
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.