title: populate all array of objects
body: <p>I have a schema of <code>concerts</code> which I am populating with <code>reviews</code> using virtual populate which returns an array of reviews. Now on every review I again have to populate <code>customerId</code> to its <code>name</code> and <code>avatar</code>.</p>
  <p>Here is my code</p>
  <pre><code>const populateReviews = await Concert.findById(id).populate({
      path: &quot;reviews&quot;,
      options: {
        sort: { rating: -1, updatedAt: -1 },
      },
    });
  const populateCustomers = await Customer.populate(populateReviews, {
    path: &quot;reviews.customerId&quot;,
    options: {
      select: { name: 1, avatar: 1 },
    },
  });
  </code></pre>
  <p>And here is the output of above code.</p>
  <p><a href="https://i.stack.imgur.com/txOxF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/txOxF.png" alt="enter image description here" /></a></p>
  <p>I have to populate <code>customerId</code>. Please help me with this.</p>