System Information
- Strapi Version: v5.0.6, 5.1 …ts
- Operating System: windows 11 local development, debian production
- Database: mariadb 10.6
- Node Version: 20.4.0
- NPM Version:
- Yarn Version: 1.22.22
hi,
for backend, i made recomendation middleware with his route
const compte=await strapi.documents(‘api::compte.compte’).findMany(
{
populate:{
profile:{
populate:{
interests: {
populate: “",
},
avatar: "”,
photos: "*",
receptions:{
populate:{
envoyeur:{populate:'avatar'}
}
},
envoyers:{
populate:{
recepteurs:{populate:'avatar'}
}
},
aimes:{populate:"*"},
stories:{
populate: "*",
}
}
},
store:{
fields:"*",
populate:"*"
},
position:{
fields:"*"
},
},
filters: {
email: {
$eq: user?.email,
},
},
}
)
where i made some request like this
fact is in development
all work fine,
all populate give me relation
but in production
have no error give me
his profile but
give me empty array for all relation inside
profile
otherwise, when i pass by rest
give me all nice
and just
for production
so i try pass to 5.1…
give me
inside phpstorm ide
error on first populate
so i try pass it in comment
and give nothing!!!
frontend is gatsby capacitor web and apk