title: Find entity with latest date using Spring Data with MongoDB
body: <p>Given next object structure:</p>
  
  <pre><code>class Foo {
    @Id
    String id;
    LocalDate date;
    ...
  }
  </code></pre>
  
  <p>We store these objects in <code>MongoDB</code>. Is there any possibility to get entity with the latest date via <code>MongoRepository</code> like in the next example?</p>
  
  <pre><code>interface FooRepository extends MongoRepository&lt;Foo, String&gt; {
      @Query(???)
      Foo getByLatestDate(LocalDate date);
  }
  </code></pre>