Skip to content

Allow binding full arguments map onto an object #258

Closed
@marceloverdijk

Description

@marceloverdijk

Having a Query mapping like:

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions