Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the documentation code samples to reflect the current Hot Chocolate / Fusion / Nitro setup APIs (notably switching from AddGraphQLServer() / AddFusionGatewayServer() to AddGraphQL() / AddGraphQLGateway()), so readers can copy/paste examples that match the latest guidance.
Changes:
- Replace
AddGraphQLServer()withAddGraphQL()across Hot Chocolate v16 and Nitro docs examples. - Replace Fusion gateway setup examples to use
AddGraphQLGateway()(and related naming updates in headings/text). - Minor doc cleanup (e.g., removing redundant page heading where frontmatter title already renders one).
Reviewed changes
Copilot reviewed 65 out of 65 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| website/src/docs/nitro/open-telemetry/operation-monitoring.md | Update Nitro telemetry example to use AddGraphQL() |
| website/src/docs/nitro/open-telemetry/logging.md | Update Nitro logging example to use AddGraphQL() |
| website/src/docs/nitro/nitro-services.md | Update Nitro “connect your API” example to use builder.AddGraphQL() |
| website/src/docs/nitro/apis/operation-reporting.md | Update operation reporting examples to use AddGraphQL() |
| website/src/docs/nitro/apis/fusion.md | Update Fusion gateway/subgraph examples to use AddGraphQLGateway() / AddGraphQL() |
| website/src/docs/nitro/apis/client-registry.md | Update client registry integration examples to use AddGraphQL() |
| website/src/docs/hotchocolate/v16/server/warmup.md | Update warmup examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/server/interceptors.md | Update interceptor registration examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/server/instrumentation.md | Update instrumentation examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/server/http-transport.md | Update HTTP transport examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/server/files.md | Update file upload scalar registration example to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/server/endpoints.md | Update endpoint examples and AddGraphQL parameter docs |
| website/src/docs/hotchocolate/v16/server/command-line.md | Update CLI example to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/server/cache-control.md | Update cache-control examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/server/batching.md | Update batching examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/securing-your-api/request-limits.md | Update request limit examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/securing-your-api/introspection.md | Update introspection examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/securing-your-api/index.md | Update security index snippet to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/securing-your-api/cost-analysis.md | Update cost analysis examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/securing-your-api/authorization.md | Update authorization example to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/securing-your-api/authentication.md | Update authentication examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/resolvers-and-data/sorting.md | Update sorting registration examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/resolvers-and-data/resolvers.md | Update resolver registration examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/resolvers-and-data/projections.md | Update projections registration example to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/resolvers-and-data/pagination.md | Update paging configuration examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/resolvers-and-data/filtering.md | Update filtering examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/resolvers-and-data/fetching-from-rest.md | Update REST integration examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/resolvers-and-data/fetching-from-databases.md | Update DB integration examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/resolvers-and-data/dependency-injection.md | Update DI examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/performance/trusted-documents.md | Update trusted documents examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/performance/automatic-persisted-operations.md | Update APO examples to use builder.AddGraphQL() (and tidy MemoryCache setup snippet) |
| website/src/docs/hotchocolate/v16/migrating/migrate-from-15-to-16.md | Update migration guide snippets to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/integrations/spatial-data.md | Update spatial integration snippets to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/integrations/mongodb.md | Update MongoDB integration snippets to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/integrations/marten.md | Update Marten integration snippets to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/integrations/entity-framework.md | Update EF integration snippets to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/guides/testing.md | Update testing guide to use AddGraphQL() in ServiceCollection examples |
| website/src/docs/hotchocolate/v16/guides/schema-evolution.md | Update schema evolution examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/guides/public-api.md | Update public API hardening examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/guides/private-api.md | Update private API examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/guides/performance.md | Update performance guide examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/guides/openapi-adapter.md | Update OpenAPI adapter examples and Fusion note to use AddGraphQLGateway() |
| website/src/docs/hotchocolate/v16/guides/mcp-adapter.md | Update MCP adapter examples and Fusion note to use AddGraphQLGateway() |
| website/src/docs/hotchocolate/v16/guides/error-handling.md | Update error handling examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/guides/dynamic-schemas.md | Update dynamic schema examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/execution-engine/index.md | Update execution engine pipeline examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/versioning.md | Update versioning examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/unions.md | Update unions registration example to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/subscriptions.md | Update subscription examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/scalars.md | Update scalar registration examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/relay.md | Update Relay/global ID examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/queries.md | Update query type registration example to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/object-types.md | Update object type registration examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/mutations.md | Update mutation examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/interfaces.md | Update interface examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/extending-types.md | Update type extension examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/enums.md | Update enum registration example to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/dynamic-schemas.md | Update building-a-schema dynamic schema examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/documentation.md | Update documentation options examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/building-a-schema/directives.md | Update directive registration example to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/api-reference/extending-filtering.md | Update extending filtering examples to use builder.AddGraphQL() |
| website/src/docs/hotchocolate/v16/api-reference/apollo-federation.md | Update federation examples to use builder.AddGraphQL() |
| website/src/docs/fusion/v16/request-limits.md | Update gateway request-size example to use builder.AddGraphQLGateway(...) |
| website/src/docs/fusion/v16/migration/migrating-from-schema-stitching.md | Update stitching→fusion migration examples to use builder.AddGraphQL() |
| website/src/docs/fusion/v16/authentication-and-authorization.md | Remove redundant H1 heading (frontmatter title already present) |
Comments suppressed due to low confidence (3)
website/src/docs/nitro/apis/fusion.md:57
- The gateway configuration snippet ends the fluent call with
})but never terminates the statement. Add the missing semicolon (e.g., end the call with});) so the example compiles.
website/src/docs/hotchocolate/v16/integrations/spatial-data.md:171 - This C# snippet is missing the terminating semicolon after the fluent configuration chain. Add
;after the final.AddSpatialProjections()call so the example compiles.
website/src/docs/hotchocolate/v16/integrations/spatial-data.md:193 - This C# snippet is missing the terminating semicolon after the fluent configuration chain. Add
;after the final.AddSpatialFiltering()call so the example compiles.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.