Skip to content

Instantly share code, notes, and snippets.

@iamakimmer
Created January 14, 2016 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamakimmer/9b498964688f1e743581 to your computer and use it in GitHub Desktop.
Save iamakimmer/9b498964688f1e743581 to your computer and use it in GitHub Desktop.
document.mynumberlist[0] = 2;
document.markModified('mynumberlist'); //notify mongoose of the change
document.save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment