MCPcopy
hub / github.com/parse-community/parse-server / addParseCloud

Function addParseCloud

src/ParseServer.ts:575–591  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

573}
574
575function addParseCloud() {
576 const ParseCloud = require('./cloud-code/Parse.Cloud');
577 const ParseServer = require('./cloud-code/Parse.Server');
578 Object.defineProperty(Parse, 'Server', {
579 get() {
580 const conf = Config.get(Parse.applicationId);
581 return { ...conf, ...ParseServer };
582 },
583 set(newVal) {
584 newVal.appId = Parse.applicationId;
585 Config.put(newVal);
586 },
587 configurable: true,
588 });
589 Object.assign(Parse.Cloud, ParseCloud);
590 global.Parse = Parse;
591}
592
593function injectDefaults(options: ParseServerOptions) {
594 Object.keys(defaults).forEach(key => {

Callers 2

ParseServer.tsFile · 0.85
startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected