New to mongoose & node.
I can't figure out if mongoose document.save method is async. I'm assuming that it is, since it works even when not connected. Is there a way to tell when the document is actually saved (callback)?
New to mongoose & node.
I can't figure out if mongoose document.save method is async. I'm assuming that it is, since it works even when not connected. Is there a way to tell when the document is actually saved (callback)?
yep, it's async. You can use the 'error' parameter to see if there was an error during saving.