Use lean it will convert in a plain JavaScript object.
const posts = await PostModel.find().lean();
or you can try serialization via .toJSON