https://stackoverflow.com/questions/27399048/mongoose-add-data-to-returned-result-set
searchQuery.exec(function (err, authors) {
authors = authors.map(function(author) {
author.set('thumbnail', 'test', {strict: false});
return author;
});
res.json(authors);
});
댓글
댓글 쓰기