Skip to content

Fix Hot Chocolate docs examples#9526

Merged
michaelstaib merged 1 commit intomainfrom
mst/fix-docs
Apr 10, 2026
Merged

Fix Hot Chocolate docs examples#9526
michaelstaib merged 1 commit intomainfrom
mst/fix-docs

Conversation

@michaelstaib
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 10, 2026 14:39
@github-actions github-actions bot added the 📚 documentation This issue is about working on our documentation. label Apr 10, 2026
@michaelstaib michaelstaib merged commit f46f003 into main Apr 10, 2026
14 checks passed
@michaelstaib michaelstaib deleted the mst/fix-docs branch April 10, 2026 14:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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() with AddGraphQL() 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📚 documentation This issue is about working on our documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants