Models have built-in static methods such as find, findOne, and findOneAndRemove. Mongoose allow us to define custom static model methods as well. Static model methods are defined in the schema in the same way as document instance methods are.
Schemas have a property called statics which is an object. All the methods defined inside the statics object are passed to the model. Static model methods can also be defined by calling the static schema method.