Is it possible to limit the fields which are projected in findAll method using Spring Data Rest mongo repository. If so how can I do it ?
For example, class A has name, age, address, mobileNo.
findAll will return List
What I want is, just name and age which need to be returned in List< List< String>>>. Do I need to give custom implementation for this or this can be done by giving @Query("{}, {name: 1, age: 1}")