Open
Description
I am doing a really large Mongoose call with nested population, and then doing some processing on the data.
However, because of the nested populate call I am hitting the 16MB limit for a BSON document in Mongoose.
What's a solid way around this?
let allDocuments = await exampleModel.find({
condition: true
}).populate({path: 'tvShows', populate: {path: 'views'}});
Maybe I can break into into multiple calls? But I'm not sure a logical way to do that. Thanks.
Metadata
Metadata
Assignees
Labels
No labels