I have mongo objects with 20+ fields.I use basic crud controller (public class SampleController extends RepositoryBasedRestController<Sample, String, SampleRepository>)
Is there easy way to limit fields that were send from server to client (e.g. specify 3 fields)? If not, what will be right way to implement? Override controller methods and add list of fields as param to requests?
Ideally if i could specify them from client, when making request.