I have created a dynamic zone “products” on a collection type named “coffret”.
When I try to populate all these dynamic products from REST API, I get this error:
error: Invalid nested populate for coffret.products (api::coffret.coffret). Expected a fragment ("on") or "count" but found {"populate":"*"}
Error: Invalid nested populate for coffret.products (api::coffret.coffret). Expected a fragment ("on") or "count" but found {"populate":"*"}
Here is the query I try to send:
localhost:1337/api/coffrets?populate[products][populate]=*
This topic has been created from a Discord post (1262709498536136755) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord
Error: Invalid nested populate for dynamic zone
Sorry to jump in, having the same problem, I’m using the latest rc version cuz of issue #20638, but i assume the post creator is using the stable version
just noticed that 4.25.4 was released that fixes the windows path issue, downgraded and the nested populate works like a charm, so this is a 5.x-rc issue
facing same issue while testing application using rc-7. anyone know when this fix release for v5 ?
Hi 
so when you populate a dynamic it contains a lot of different components. In v4 using * could actually completly break your request.
We are looking into what we can do to still offer this convenient method but without the issue it was causing.
For now you will have to specify a populate for the component types you want to populate
e.g
{
populate: {
dz: {
on: {
compoA: {
populate: *
}
compoB: {
populate: ['some-filed']
}
}
}
}
}
Also FYI I checked in with the team and they added support for
populate[dz]=true directly that should do what you need 