System Information
- Strapi Version:
- Operating System:
- Database:
- Node Version:
- NPM Version:
- Yarn Version:
Hi, everyone, i trying get media from my repeatable compoenent in dynamic zone. show image below.
Page schema:
Page controller:
module.exports = createCoreController("api::page.page", ({ strapi }) => ({
async find(ctx) {
const { query } = ctx;
const entity = await strapi.entityService.findMany("api::page.page", {
...query,
populate: {
header: { populate: "*" },
blocks: {
// blocks in dynamic zone
hero: { populate: "*" },
company: { populate: "*" },
anchor: { populate: "*" },
product: { populate: "*" },
partners: {
//repeatable component
media_items: { populate: "*" }, // dont working
},
//
populate: "*",
},
},
});
const sanitizedEntity = await this.sanitizeOutput(entity, ctx);
return this.transformResponse(sanitizedEntity);
},
}));
I gets only id and alt properties, can someone help with it? Idk how can deal that