MCPcopy
hub / github.com/strongloop/loopback / setRemoting

Function setRemoting

lib/persisted-model.js:642–647  ·  view source on GitHub ↗
(scope, name, options)

Source from the content-addressed store, hash-verified

640 options.replaceOnPUT = options.replaceOnPUT !== false;
641
642 function setRemoting(scope, name, options) {
643 const fn = scope[name];
644 fn._delegate = true;
645 options.isStatic = scope === PersistedModel;
646 PersistedModel.remoteMethod(name, options);
647 }
648
649 setRemoting(PersistedModel, 'create', {
650 description: 'Create a new instance of the model and persist it into the data source.',

Callers 1

persisted-model.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…