Distinct no Spring Data MongoDB

Alguém já tentou incorporardistinct na consulta usandoSpring Data for Mongo. Se você tem um exemplo, você pode publicá-lo. Onde e como devo incluir odistinct flag?

Link para o exemplo do Spring Data Mongo -Example 4.4. Query creation from method names

// Enables the distinct flag for the query
List<Person> findDistinctPeopleByLastnameOrFirstname(String lastname, String firstname);
List<Person> findPeopleDistinctByLastnameOrFirstname(String lastname, String firstname);

questionAnswers(4)

yourAnswerToTheQuestion