I am not sure which other ways of trying to write select
you tried, but as it shows here: Populating | Strapi Documentation
I believe you should use fields
, instead of select
. So it would be:
const allMakeupArtiste = await strapi.entityService.findMany(
"api::makeup-artiste.makeup-artiste",
{
populate: {
main_picture: {
populate: "*",
},
skills: {
populate: "*",
},
experiences: {
populate: "*",
},
courses: {
populate: "*",
},
service_offers: {
populate: "*",
},
network: {
populate: "*",
},
language: {
populate: "*",
},
user: {
fields: ["username"],
},
image_gallery: {
populate: "*",
},
},
filters: {
available: {
$eq: true,
},
},
}
);
I hope this helps , I tested on a similar situation and it works properly for me that way, if I use
select
then all the fields appear like you described.