Skip to content

Spring for GraphQL 1.2

Rossen Stoyanchev edited this page Jan 23, 2023 · 4 revisions

What’s New in Spring for GraphQL 1.2

New Features

@Validated on method parameter

Validation via @Validated on method parameter is now supported as an alternative to @Valid if you need to specify validation groups for a specific parameter. Alternatively, @Validated can also be declared on the method or on the class level.

Upgrade and Migration Notes

@Argument Map<String, Object> no longer returns the full arguments map, and instead now always returns the raw argument value, matching either to the name specified in the annotation, or to the parameter name. For access to the full arguments map, please use @Arguments Map<String, Object> or DataFetchingEnvironment#getArguments.

Clone this wiki locally