I could be that should be mongoose.model instead of mongoose.Model.
Also, did you create a Schema?
I wrote first a Schema and then passed it to the model like mongoose.model(‘Person’, personSchema).
And then you use Person.create(…).
Thanks I got it. Schema was already created as part of the previous solution. I thought I had to use literally Model.create instead of using an instance of model and associated create method.
It seems like Mongoose sets a clear separation when creating records for one user and many users. Save is kept for one user while create is kept for many users.
In my understanding, I’m wondering if that is made to reduce errors from the developer’s side
On top of it, create wants you to pass the array of users together with the callback function while save only takes the callback function.