1. Write some mini applications with node recently. Using mongoose. There is a small problem. Do not understand (may not understand the English document or do not understand).
for example:
video.find({},(err, videos) => {
videos.forEach(val => {
val.videoId = val._id;
delete val.id;
})
})
find a normal method. Or can you tell me where it is in the document? I really don"t understand how to do it.