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
rstoyanchev
changed the title
Support @Argument binding to a parameter class that may not have proper setters
Support option for @Argument binding to fall back on direct field access
Feb 1, 2023
Sometimes, the class to use as the target for
@Argument
might not have a setter for all its properties. E.g.Especially when the class is from a third-party library, which is my case here.
Is it possible to fall back to using the direct-field-access approach when the proper Setter cannot be found?
Would the following code change make sense?
From:
https://github.com/spring-projects/spring-graphql/blob/main/spring-graphql/src/main/java/org/springframework/graphql/data/GraphQlArgumentBinder.java#L300
To:
The text was updated successfully, but these errors were encountered: