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

Function add

src/triggers.js:124–133  ·  view source on GitHub ↗
(category, name, handler, applicationId)

Source from the content-addressed store, hash-verified

122}
123
124function add(category, name, handler, applicationId) {
125 const lastComponent = name.split('.').splice(-1);
126 const store = getStore(category, name, applicationId);
127 if (store[lastComponent]) {
128 logger.warn(
129 `Warning: Duplicate cloud functions exist for ${lastComponent}. Only the last one will be used and the others will be ignored.`
130 );
131 }
132 store[lastComponent] = handler;
133}
134
135function remove(category, name, applicationId) {
136 const lastComponent = name.split('.').splice(-1);

Callers 4

addFunctionFunction · 0.85
addJobFunction · 0.85
addTriggerFunction · 0.85
addConnectTriggerFunction · 0.85

Calls 2

getStoreFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected