System Information
- Strapi Version:
- Operating System:
- Database:
- Node Version: v19.8.1
- NPM Version: 9.5.1
- Yarn Version:
module.exports = {
find: async (locale) => {
try {
let entry = await strapi.entityService.findMany(
"api::my-page.my-page",
{
populate: {
// approach is a repeatable component, which is fetched correctly
approach: {
populate: {
fields: ["title", "text"],
image: {
fields: ["url"]
}
},
// projects is a collection within approach, which is not fetched. But is it possible this way?
projects: {
populate: {
fields: ["project_title"]
}
}
}
},
}
);
return entry
} catch (err) {
return err;
}
},
};