I am trying to overwrite the default populate for a nested relationship.
Hey,
I have a collection posts which has a relationship field called author linked to the collection authors and an author has a relationship field called company linked to the collection companies
I want to overwrite the defaultPopulate for company.
I thought this would do the trick, but it does not work, it keeps using the defaultPopulate settings, am I missing something?
await req.payload.findByID({
collection: "posts",
id: postId,
depth: 10,
locale: language,
populate: {
"companies": {
name: true,
},
},
});
Does populate only work one level down?