title: AEM Querybuilder - How to return only the folders under a path?
body: <p>I'm trying to rerun only the folders from a given path using query builder on AEM</p>
  
  <p>Query:</p>
  
  <pre><code>path=/content/dam/we-retail/en
  type=sling:OrderedFolder
  p.hits=selective
  p.nodedepth=1
  p.limit=-1
  </code></pre>
  
  <p>Or URL <a href="http://localhost:4502/bin/querybuilder.json?p.hits=selective&amp;p.limit=-1&amp;p.nodedepth=1&amp;path=%2fcontent%2fdam%2fwe-retail%2fen&amp;type=sling%3aOrderedFolder" rel="nofollow noreferrer">http://localhost:4502/bin/querybuilder.json?p.hits=selective&amp;p.limit=-1&amp;p.nodedepth=1&amp;path=%2fcontent%2fdam%2fwe-retail%2fen&amp;type=sling%3aOrderedFolder</a></p>
  
  <p><a href="https://i.stack.imgur.com/1x7sG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1x7sG.png" alt="Screenshot of querybuilder test url"></a></p>
  
  <p><a href="https://i.stack.imgur.com/J0OeL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J0OeL.png" alt="Screenshot of folders under we-retail/en"></a></p>
  
  <p>The query returns 35 records, while there are only 6 folders under <code>/content/dam/we-retail/en</code>. How can i return only these 6?</p>