Skip to content

Support custom HandlerMethodArgumentResolver #603

Closed
@bystam

Description

@bystam

Spring GraphQL has a strategy interface for dynamically resolving values in schema mapping signatures called org.springframework.graphql.data.method.HandlerMethodArgumentResolver.

The multiple built-in instances of this are set up in the AnnotatedControllerConfigurer which is set up with the auto-configuration. However, this doesn't scan for custom instances of it, which means one can't inject custom argument resolvers.

This makes it differ from the spring-mvc counterpart with the same name: org.springframework.web.method.support.HandlerMethodArgumentResolver. If I read the source code correctly these are set up in here: https://github.com/spring-projects/spring-framework/blob/1e98fb607a274fc3cc49c24902d7c269f2946514/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java#L669

Since they have the exact same name, I would have assumed one could also create custom ones in the Spring GraphQL like in web-mvc.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions