After checking out the official documentation, I am still not sure on how to create methods for use within mongoose
to create & update documents.
So how can I do this?
I have something like this in mind:
mySchema.statics.insertSomething = function insertSomething () {
return this.insert(() ?
}