Here is the relevant section of documents related to repositories. Also in the section when requesting documents contains a brief mention of this.
When using, MongoOperationsyou can use an instance Queryto limit the result for certain fields:
Query query = Query.query(Criteria.where("lastname").eq("…"));
// Configure the field spec you want to use for this query
query.fields().include(…).slice(…);
DATAMONGO-839, , JavaDoc Query.