Skip to content

Update v16 interceptor docs for removed IOperationMessagePayload.As<T>#9731

Merged
glen-84 merged 2 commits into
mainfrom
gai/v16-docs-payload-as-removed
May 18, 2026
Merged

Update v16 interceptor docs for removed IOperationMessagePayload.As<T>#9731
glen-84 merged 2 commits into
mainfrom
gai/v16-docs-payload-as-removed

Conversation

@glen-84
Copy link
Copy Markdown
Member

@glen-84 glen-84 commented May 18, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 18, 2026 14:22
@github-actions github-actions Bot added the 📚 documentation This issue is about working on our documentation. label May 18, 2026
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 Hot Chocolate v16 documentation to reflect the removal of IOperationMessagePayload.As<T>() by switching examples/guidance to the new raw JsonElement? Payload API.

Changes:

  • Updated the v16 interceptor documentation example to read values from IOperationMessagePayload.Payload via JsonElement.
  • Added migration-guide documentation explaining the As<T>() removal and how to migrate to Payload?.Deserialize<T>().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
website/src/docs/hotchocolate/v16/server/interceptors.md Updates the OnConnectAsync example to use Payload/JsonElement instead of .As<T>().
website-next/content/docs/hotchocolate/migrating/migrate-from-15-to-16.md Adds a migration section documenting the As<T>() removal and replacement patterns.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website/src/docs/hotchocolate/v16/server/interceptors.md Outdated
@glen-84 glen-84 merged commit e171f47 into main May 18, 2026
17 checks passed
@glen-84 glen-84 deleted the gai/v16-docs-payload-as-removed branch May 18, 2026 14:40
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