Update: var comment = blog.comments.id(comment_id); comment.author = ‘Bruce Wayne’; blog.save(function (err) { // emmbeded comment with author updated }); Delete: Blog.findByIdAndUpdateAsync(blogId, { $pull: { comments: {_id: commentId}} }) .then(blog => { res.status(200).json(‘Comment is deleted successfully.’); }) .catch(err => { console.error(err); res.status(500).json(err.message || err); });
Read MoreSearch
링크 페이지가 없는 경우, 키워드 검색으로 찾아보세요. 페이지 위치가 변경될 수 있습니다.
Recent Posts
- What is `Vala` (programming language)? an `object-oriented programming language` that generates `C` code 2018-01-04
- Babel: Why aren’t files in `node_modules` being transformed with Browserify? 2018-01-03
- How to replace `Bower` to `Yarn` with `Yarn Workspaces` 2018-01-02
- How to show hidden files(in `.gitignore`, etc.) Atom sidebar 2018-01-01
- What are the `ES6` modules and `CommonJS` modules? 2017-12-31
RSS
Tags
angular-fullstack (3)
Arduino (3)
Atom sidebar (1)
Babel (2)
Babel 6 (3)
Babelify ES6 (1)
Browserify (1)
Browserify transform Babelify (1)
CommonJS exports (1)
CommonJS module.exports (1)
ECMAScript 6 (3)
Editor (2)
Elasticsearch (2)
elasticsearch custom analyzer (2)
ES6 (3)
ES6 default export (1)
ES6 export (1)
ESP8266 (7)
git (2)
grunt test:e2e (1)
Hackintosh (2)
ILI9341 screen driver (2)
jasmine (1)
markdown (2)
MEAN (1)
migrate to Yarn (1)
module.exports (2)
mongoosastic (2)
mongoose (2)
nodejs (3)
object-oriented (1)
PIR Motion Detector (2)
Programming Language (1)
protractor (1)
self-hosting compiler (1)
Servo Motor (2)
show git ignore files (1)
sudoers (2)
Vala (1)
visudo (2)
WeMos D1 mini (4)
Yarn Workspaces (1)
브레드보드 (1)
전원공급장치 (1)
점퍼케이블 (1)
Categories
- Android (5)
- angular-fullstack (15)
- Arduino (9)
- Atom Editor (5)
- Bike (1)
- Books (2)
- C++ (1)
- EBS Record (1)
- Eclipse (1)
- ECMAScript 6 (11)
- Elasticsearch (4)
- Elementary OS (13)
- ESP8266 (24)
- Git (3)
- Linux (11)
- Linux Zephyr (1)
- Mac OS for PC (1)
- MakrFun Store (24)
- Markdown (2)
- Memo (2)
- MongoDB (3)
- MySQL (1)
- Nodejs (7)
- Raspberry Pi (3)
- Tablet (1)
- Ubuntu (22)
- Uncategorized (4)
- Wiki (1)
- Windows (1)
- 머신러닝 (1)
- TensorFlow (1)
- 브레드보드 (1)
- 전원공급장치 (1)