DEV Community

Discussion on: Designing a better architecture for a Node.js API

Collapse
 
reynaldohub profile image
reynaldo-hub

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.