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
public Page<Season> seasons(@Argument Pageable pageable) {. .. }
and a corresponding class:
@Data
public class Pageable {
private int first;
private int offset
}
when querying:
query {
seasons(first:5, offset:10) {
..
}
}
the pageable object in the controller is null unfortunately.
I think the reason is that it will look for a pageable input variable and will not look for the individual first and offset fields.
The text was updated successfully, but these errors were encountered:
rstoyanchev
changed the title
Custom @Argument object to access root properties does not work
Allow binding full arguments map onto an object
Jan 17, 2022
Yes, @Argument looks for a name, either from the annotation or from the method parameter name. We need some way to express that not one but all arguments should be the source. Perhaps a separate annotation @Arguments.
Having a Query mapping like:
public Page<Season> seasons(@Argument Pageable pageable) {. .. }
and a corresponding class:
when querying:
the pageable object in the controller is
null
unfortunately.I think the reason is that it will look for a
pageable
input variable and will not look for the individualfirst
andoffset
fields.The text was updated successfully, but these errors were encountered: