Mongoose also offers the create method that does basically the same thing, and it also offers some support to save multiple documents, check it out here: mongoosejs.com/docs/api.html#model...
Could you share the error you are getting in this part and the source code, maybe we can help you.:)
I didn't know that calling create was triggering the same effects as calling the save() function, it was guiding me from this post (twm.me/correct-way-to-use-mongoose/).
Maybe this is no longer necessary, but I was getting an output of (this.model.save () is not a function).
Very good job by the way.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
In the official mongoose documentation they refer to using the save() instead of create().
I'm getting an error while trying to use the save() function, I've tried to fix this (maybe I'm being a fancy), but I couldn't.
// this.model.save();
It would be great if we could solve this.
Hey Reynaldo,
Mongoose also offers the create method that does basically the same thing, and it also offers some support to save multiple documents, check it out here: mongoosejs.com/docs/api.html#model...
Could you share the error you are getting in this part and the source code, maybe we can help you.:)
I didn't know that calling create was triggering the same effects as calling the save() function, it was guiding me from this post (twm.me/correct-way-to-use-mongoose/).
Maybe this is no longer necessary, but I was getting an output of (this.model.save () is not a function).
Very good job by the way.