Repository navigation
[Fusion] Document the operation kind annotation opt-in for request deduplication - #10083
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces (and documents) an opt-in mechanism for propagating the GraphQL operation kind onto outgoing subgraph HTTP requests so that downstream HTTP pipeline components—specifically request deduplication—can make decisions without parsing the request body.
Changes:
- Adds
FusionRequestOptions.AnnotateOperationKind(defaultfalse) and wires it through the Fusion HTTP source schema client so it conditionally setsGraphQLHttpRequest.OperationKind. - Updates Fusion performance tuning docs to explain the two required steps for deduplication: enabling operation-kind annotation in the gateway + adding the deduplication handler to the named HTTP client.
- Updates
AddRequestDeduplication()XML docs to reflect the current signaling mechanism (HttpRequestMessage.Options/OperationKindOptionsKey).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| website/content/docs/fusion/performance-tuning.md | Documents the required opt-in and configuration steps for request deduplication. |
| src/HotChocolate/Fusion/src/Fusion.Execution/Execution/FusionRequestOptions.cs | Adds AnnotateOperationKind option and includes it in Clone(). |
| src/HotChocolate/Fusion/src/Fusion.Execution/Execution/Clients/HttpSourceSchemaClientFactory.cs | Passes the schema request option into the HTTP source schema client. |
| src/HotChocolate/Fusion/src/Fusion.Execution/Execution/Clients/HttpSourceSchemaClient.cs | Conditionally sets GraphQLHttpRequest.OperationKind based on the new opt-in flag. |
| src/HotChocolate/AspNetCore/src/Transport.Http/RequestDeduplicationHttpClientBuilderExtensions.cs | Updates XML docs to match operation-kind signaling via HttpRequestMessage.Options. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This was referenced Jul 13, 2026
This was referenced Jul 20, 2026
chore(deps): Bump HotChocolate.Subscriptions.InMemory from 15.1.14 to 16.5.1
Kuestenlogik/Bowire#506
Merged
This was referenced Sep 1, 2026
Closed
This was referenced Sep 15, 2026
Closed
[nuget][SUI_Matcher]- Bump the sui-package-updates group with 20 updates
DFE-Digital/SUI_Matcher#405
Closed
This was referenced Sep 22, 2026
Closed
Closed
[nuget][SUI_Matcher]- Bump the sui-package-updates group with 20 updates
DFE-Digital/SUI_Matcher#410
Merged
This was referenced Oct 5, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.