I am exploring QueryDsl, and in particular @QuerydslPredicate
used on RestControllers for binding rest params to Querydsl Predicates. An example endpoint is given below:
@GetMapping
public Page<UserViewDTO> findAll(@QuerydslPredicate(root = User.class) Predicate predicate, Pageable pageable) {
My request contains the following query params : ?username=user&page=0&size=10&sort=id,asc
. Is it possible to somehow pass a groupBy parameter? I have looked at the documentation but could not find a way to do so. Adding it to the query params is simply being ignored.
Is it possible to somehow pass a groupBy parameter?
No, it is not possible to pass groupBy parameter by QuerydslPredicate