Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@aheckmann
Created June 20, 2012 20:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aheckmann/2961877 to your computer and use it in GitHub Desktop.
Save aheckmann/2961877 to your computer and use it in GitHub Desktop.
v3-p1-save-comment
Post.findById(postId, function (err, post) {
// handle errors ..
post.comments.push({ body: someText, user: userId });
post.save(callback);
})
@eduard-tkv
Copy link

asdf

@qlocx
Copy link

qlocx commented Nov 29, 2017

asdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment