title: How to get all the assets in a Collection in AEM?
body: <p>I am trying to get all the assets inside a collection in AEM given the path of the collection.</p>
  
  <p>Let's say the path of the collection is 
  /content/dam/collections/public/-/-XZMzZlhkJKIa7-Mg15h/testing</p>
  
  <p>I need to get all the assets inside this collection.</p>
  
  <p>I checked under content/dam/collections the assets are not stored under this location</p>
  
  <p>I even tried by writing a query in query builder in AEM giving type:dam:asset
  and path:"location of the collection"</p>
  
  <p>I couldn't get any results.</p>
  
  <p>I just need to get all the assets under the collection in Java or QueryBuilder</p>