Module: lib/middleware/mongoose/global-pre-hooks

Global prehooks for protecting read-only versions of website
Source:

(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.
Author:
  • Jose Nicolas Mora
Source:

Requires

  • module:mongoose