title: MongoRepository query for between dates
body: <p>My pojo  </p>
  
  <pre><code>public class PacketData implements Serializable {
  
      private static final long serialVersionUID = 1L;
  
      @Id
      private final String token = UUID.randomUUID().toString();
  
      private final ZonedDateTime arrived = ZonedDateTime.now();
  }
  </code></pre>
  
  <p>I plan to use like following.</p>
  
  <pre><code>@Query("?")
  List&lt;PacketData&gt; findPacketArrivedBetween(ZonedDateTime startDate, ZonedDateTime endDate);
  </code></pre>
  
  <p>Is there a way i can put the following query to the above <code>query</code> annotation and how i can do greater than and less than logic</p>
  
  <pre><code>Query query = new Query().addCriteria(Criteria.where("arrived").gte(startDate).lte(endDate));
  </code></pre>