Quantcast
Channel: User Industrial - Stack Overflow
Viewing all articles
Browse latest Browse all 56

Creating methods to update & save documents with mongoose?

$
0
0

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(() ?
}

Viewing all articles
Browse latest Browse all 56

Trending Articles