MCPcopy Index your code
hub / github.com/parse-community/parse-server / addTrigger

Function addTrigger

src/triggers.js:159–163  ·  view source on GitHub ↗
(type, className, handler, applicationId, validationHandler)

Source from the content-addressed store, hash-verified

157}
158
159export function addTrigger(type, className, handler, applicationId, validationHandler) {
160 validateClassNameForTriggers(className, type);
161 add(Category.Triggers, `${type}.${className}`, handler, applicationId);
162 add(Category.Validators, `${type}.${className}`, validationHandler, applicationId);
163}
164
165export function addConnectTrigger(type, handler, applicationId, validationHandler) {
166 add(Category.Triggers, `${type}.${ConnectClassName}`, handler, applicationId);

Callers

nothing calls this directly

Calls 2

addFunction · 0.85

Tested by

no test coverage detected