-
Notifications
You must be signed in to change notification settings - Fork 2k
incrementalDelivery: use single execute function with directives as flags #3732
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
Conversation
Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋 Supported commandsPlease post this commands in separate comments and only one per comment:
|
My current preferred alternative to #3722 / #3727 / #3726 |
4710984
to
7644420
Compare
Even if we don't take this solution in whole, we might want to extract out the removal of the unnecessary |
✅ Deploy Preview for compassionate-pike-271cb3 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for compassionate-pike-271cb3 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
extracted from graphql#3732
7644420
to
9469a9c
Compare
extracted from graphql#3732
9469a9c
to
d1dc85f
Compare
extracted from graphql#3732
06b8284
to
b4509cd
Compare
…ctives themselves The use of new experimental functionality triggered by directives does not need a separate runtime flag. The directives themselves are the flags and all operations passed to `execute` are assumed to be valid. Using TS conditional types, when new generic `TMaybeIncremental` parameter is set to true, return type of `execute` will be either an ExecutionResult or an IncrementalExecutionResultMap containing an `initialResult` and a generator of `subsequentResults`. While incremental delivery is designated as experimental, `TMaybeIncremental` will default to `false`. When incremental delivery is merged into the spec, it may be useful to adjust the default to `true`.
b4509cd
to
418b3a7
Compare
Closing in favor of #3722. |
The use of new experimental functionality triggered by directives does not need a separate runtime flag. The directives themselves are the flags and all operations passed to
execute
are assumed to be valid.Using TS conditional types, when new generic
TMaybeIncremental
parameter is set to true, return type ofexecute
will be either an ExecutionResult or an IncrementalExecutionResultMap containing aninitialResult
and a generator ofsubsequentResults
. While incremental delivery is designated as experimental,TMaybeIncremental
will default tofalse
. When incremental delivery is merged into the spec, it may be useful to adjust the default totrue
.