Skip to content

Update migration guide: Any / Json scalar changes#9331

Merged
michaelstaib merged 2 commits intoChilliCream:mainfrom
N-Olbert:AnyJsonChange
Mar 9, 2026
Merged

Update migration guide: Any / Json scalar changes#9331
michaelstaib merged 2 commits intoChilliCream:mainfrom
N-Olbert:AnyJsonChange

Conversation

@N-Olbert
Copy link
Copy Markdown
Contributor

@N-Olbert N-Olbert commented Mar 8, 2026

Migration docs for changes regarding the Any-type and implicit Json-conversion within OperationRequestBuilder

@github-actions github-actions Bot added the 📚 documentation This issue is about working on our documentation. label Mar 8, 2026

### Any input fields now deserialize complex types as `JsonElement`

Previously, complex input values for `Any`-typed input variables were deserialized as `IDictionary<string, object?>`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

while this is true ... you can add the old behavior by adding AddJsonTypeCoverter

services
    .AddGraphQLServer()
    .AddJsonTypeConverter()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I mean in the example below you still get the JsonElement but with the JsonTypeConverter you can support other types.

@michaelstaib michaelstaib merged commit 3fb69fe into ChilliCream:main Mar 9, 2026
3 checks passed
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