-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[WIP] feat(gatsby): worker-pool for custom GraphQL field resolvers #10938
Closed
Closed
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
f5c4334
first shot at parallel workers
Moocar f4d816c
stuff
Moocar 7b3fca9
async getNode
Moocar 25a524d
asyncPlugin
Moocar e6beb71
fix pluginFields
Moocar aef1e43
use jest-worker for IPC
Moocar 8596eda
remove console.logs
Moocar e7cbeac
jest workers work!
Moocar 6863ca8
Merge branch 'master' into parallel-sketch
Moocar 242420c
store resolvers against their type, not just fieldName
Moocar a7559d5
fixed up rpc api
Moocar fa5ec9f
replace isAsync with workerPlugin
Moocar 3cf872e
document jest-worker IPC code 3 in async/worker code
Moocar 1508298
change async-resolvers -> worker-resolvers
Moocar a889664
error checking
Moocar 38e0370
resolver-worker docs and error checking
Moocar 70e7aaa
docs
Moocar c5655ec
use @moocar/jest-worker
Moocar a77c1d4
yarn.lock for @moocar/jest-worker
Moocar 7a86ee1
end worker pool after bootstrap
Moocar f629eaa
Merge branch 'master' into parallel-sketch
Moocar 6767039
introduce getCache mocker
Moocar d50efb2
fix unsupported properties, and general cleanup
Moocar 21d5aba
use plugin.name for cache in resolver-worker
Moocar 98fbec2
Merge branch 'master' into parallel-sketch
Moocar 15099d3
Merge branch 'master' into parallel-sketch
Moocar 61b0168
Merge branch 'master' into parallel-sketch
Moocar 0aca069
step.toString() in markdown benchmark
Moocar 21bfc69
Merge branch 'master' into parallel-sketch
Moocar 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
resolver-worker docs and error checking
- Loading branch information
commit 38e03705ac3a54d2b1692d5a7f923b1ffd8e8ac9
There are no files selected for viewing
This file contains 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My branch makes it so that all resolvers use stuff passed to context, instead of global ones. So here you could modify context to have the worker resolver stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@freiksenet This isn't a breaking change right? I.e will field resolvers still be able to use the closed over
getNode
etc supplied bysetFieldsOnGraphQLNodeType
in addition to those supplied in the context?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just had a read through of the branch. It looks the only api functions injected into context are
nodeModel
, which will supplygetNode
etc. Is there also a plan to include things likegetCache
,reporter
,createContentDigest
etc as well?