Skip to content

Instantly share code, notes, and snippets.

@iamakimmer
Created January 14, 2016 18:11
Show Gist options
  • 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