title: How to you implements mongoTemplate.findDistinct()?
body: <p>Im trying to use the findDistinct function from mongoTemplate but i always retrieve an empty result list. 
  Can you help me out to spot the problem ? Or maybe you have a simpliest way to do it</p>
  
  <p>NB: 
  I do have data in my collection
  (on a basic find, i fetch more than 300 results in the list but all of this result are the same excepting on one key, i want all the distinct object from their NAME value for instance ) </p>
  
  <p>I tryied this :</p>
  
  <pre><code>List&lt;DiffusionListImpl&gt; list = new ArrayList&lt;&gt;();
  
      try{
          query = new Query(Criteria.where("CUSTOMERNUMBER").is(1));
          list = mongoTemplate.findDistinct(query, KeyWhereIWantTheDistinct, collectionName,
                  KlassResultModel.class);
      } catch (MongoException e) {
          logger.error("MongoException: " + e);
      } catch (Exception e) {
          logger.error("Error: " + e);
      }
      return list;
  </code></pre>