You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we always imagined that a non-scalar type would map to a "non-simple" Object in order to provide some field values, and hence the defensive exclusions. Now that you mention it, I can see how the parent could be anything as long as all fields are left to child data fetchers.
SourceMethodArgumentResolver is the last one in the order of resolvers. We should be able to relax this a little, perhaps allowing any CharSequence or Number.
This simple example fails at the moment:
The reason seems to be that no
HandlerMethodArgumentResolver
is applicable toString
.Looking at the source resolver (
SourceMethodArgumentResolver
)simple types and arrays and collections are excluded.
I am wondering why.
This example is not so uncommon: I can return just an id like "123", which is then used to lookup more in the child DataFetchers.
Can we relax that to always fall back to
SourceMethodArgumentResolver
regardless of type?The text was updated successfully, but these errors were encountered: