NestJS Mongoose populate() Not Working for Arrays of ObjectIds, But Works for Single ObjectId
I am developing an application using NestJS and Mongoose and have encountered a problem when using the populate() method in a schema that contains an array of ObjectIds. The method works correctly when the field is a single ObjectId, but fails to populate properly when the field is an array of ObjectIds.