0

Already had a look at this other question, but it didn't seem to work for me.

Problem

So in the video (referenced below) at 9:58, he gets the Menu but the Section DOES NOT HAVE LINKS. Is there a way to populate them from the Menu?

Where it comes from

I was watching this video from Strapi on Youtube in which he creates a Menu. The Menu has the following components:

  • Link (many)
  • Dropdown (many)

Also, a Dropdown has a one-to-many relation with Section, which contains multiple Link components.

Something like this:

Menu schema

Thanks.

Rendxn
  • 45
  • 3
  • 5
  • 1
    There is a plugin that allows you to "?populate=deep". https://market.strapi.io/plugins/strapi-plugin-populate-deep, personally i'm not a fan, it can cause very slow api calls. but it works – Craig Wayne Jan 20 '23 at 06:22

1 Answers1

1

You will have to build a custom controller in order to populate nested relations in strapi.

Only solution that I found working is this.

Tom
  • 349
  • 1
  • 7