KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
From Mongoose JS documentation: schema.post('save', function (doc) { console.log('%s has been saved', doc._id); }) Is there any way to determine whether this is the original save or the saving of an existing document (an update)?
Tags (comma-separated)
Save Edits
Cancel