Skip to content

Instantly share code, notes, and snippets.

@iamakimmer
Created January 14, 2016 18:16
Show Gist options
  • Save iamakimmer/66dda0dec3397e267218 to your computer and use it in GitHub Desktop.
Save iamakimmer/66dda0dec3397e267218 to your computer and use it in GitHub Desktop.
// will not save updated date
doc.eventDate.setDay(10);
doc.save();
// will save updated date
doc.eventDate.setDay(10);
doc.markModified('eventDate');
doc.save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment