title: Pagination with Filtering using Query Operation in DynamoDB Template
body: <p>I would like to be able to filter a pagination result using query operation before the limit is taken into consideration.Is there any suggestion to get right pagination on filtered results?</p>
  
  <p>I would like to implement a DynamoDB Scan OR Query with the following logic:</p>
  
  <pre><code>Scanning -&gt; Filtering(boolean true or false) -&gt; Limiting(for pagination)
  </code></pre>
  
  <p>However, I have only been able to implement a Scan OR Query with this logic:</p>
  
  <pre><code>Scanning -&gt; Limiting(for pagination) -&gt; Filtering(boolean true or false)
  </code></pre>
  
  <p><strong>Note:</strong> I have already tried Global Secondary Index but it didn't work in my case Because I have 5 different attributes to filter and limit.</p>