title: How to use limit and skip in spring data mongodb repository?
body: <p>I want query sublist in mongo collections using Spring Data MongoDB.
  My Code is like</p>
  <pre class="lang-java prettyprint-override"><code>public interface SomeRepo extends MongoRepository&lt;SomeDoc, String&gt; {
      @Query(&quot;{'field0': ?0, 'field1': ?1}, {'limit':?2, 'skip':?3}&quot;)
      List&lt;SomeDoc&gt; findAllByField0AndFiled1(
          Long field0,
          Long field1,
          Long limit,
          Long skip
      );
  }
  </code></pre>
  <p>but <code>limit</code> &amp; <code>skip</code> are not in Query Object</p>
  <p>Log is
  <code>Created query Document{{field0=123, field1=456}} for Document{{}} fields.</code></p>
  <p>how to pass them into query object?</p>