Global prehooks for protecting read-only versions of website
(require("lib/middleware/mongoose/global-pre-hooks"))(schema, options)
Represents the global pre hooks for Mongoose middleware to protect read-only version of the web-site.
Parameters:
Name | Type | Description |
---|---|---|
schema |
Schema | The schema of the resource for which a modification is being attempted. |
options |
Object | The options used for modifying the execution of the middleware. |
Requires
- module:mongoose