Populating nested components

System Information
  • Strapi Version: 4.1.2
  • Operating System: MacOS
  • Database: Postgres
  • Node Version:
  • NPM Version:
  • Yarn Version:

I have a model that has a repeatable component inside a repeatable component. When I use the wildcard populate=* the top-level repeatable component is populated but the child repeatable component is not.

Here is the request I’m using to call the product model.

const response = await axios.get(`${API_ENDPOINT}/api/products?populate=${'*'}`)

Is there any way that I can call the child components along with the higher level repeatable components using an axios request like the one above?

Here’s the structure of the data in Strapi:

Here’s what’s being returned:
Screenshot 2022-03-08 at 15.32.09

1 Like

Turns out you can deep populate with dot notation:

response = await axios.get(${API_ENDPOINT}/api/products?filters[slug]=${slug}&populate=*,package_cards.package_card_features)

3 Likes

Excellent answer, thank you for the helpful information!