-
Notifications
You must be signed in to change notification settings - Fork 317
Spring for GraphQL 1.2
First-class support for pagination, seamlessly adapting Spring Data pagination to the GraphQL Cursor Connection specification, including support for the latest Scroll API, new in Spring Data 2023.01. To learn more, start with the section on Pagination in the reference documentation, and follow links to other sections.
You can enable inspection of GraphQL schema mappings on startup to detect schema fields with neither a DataFetcher
nor a corresponding Java object property, and likewise to detect controller methods and DataFetcher
registrations to non-existing fields. See the section on Schema Mappings Inpsection in the reference documentation.
You can now handle exceptions from @SchemaMapping
controller methods via @GraphQlExceptionHandler
annotated handler methods declared and apply either locally in the controller, or in a @ControllerAdvice
. For more, see the section on @GraphQlExceptionHandler in the reference documentation.
@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
.