title: Spring Custom Query with pageable
body: <p>I want to to implement pagination in spring application.I know using repository we can implement pagination but we can not write our own query for data retrieve there are limited methods in repository that too there is no method accepting query class.</p>
  
  <p>If we want to write our custom query to retrieve data from mongodb we have to use mongotemaplete, as i know with mongotemplate we can not implement pagination.</p>
  
  <p>Is there any another way to implement pagination along with db queries.
  any one can help me.</p>