title: Spring java MongoDB @Query annotation for order top or first records
body: <p>I use <code>@Query</code> annotation and crudRepository to fetch data from MongoDB. 
  Example: </p>
  
  <pre><code>@Query("{$query: id: ?0}, $orderby: {dateTime: -1}}")
  public List&lt;A&gt; findId(
      Integer id, Pageable pageable
  );
  </code></pre>
  
  <p>What do I need to add to my <code>@Query</code> notation if i want to fetch only first N records of collection, or only top N records of collection? I would like to use dynamic query and dynamic set limit and order (first or top records).</p>