How to use the loopback-datasource-juggler.getCurrentContext function in loopback-datasource-juggler

To help you get started, we’ve selected a few loopback-datasource-juggler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github strongloop / loopback / lib / current-context.js View on Github external
module.exports = function(loopback) {
  juggler.getCurrentContext =
  remoting.getCurrentContext =
  loopback.getCurrentContext = function() {
    throw new Error(g.f(
      '%s was removed in version 3.0. See %s for more details.',
      'loopback.getCurrentContext()',
      'http://loopback.io/doc/en/lb2/Using-current-context.html',
    ));
  };

  loopback.runInContext = function(fn) {
    throw new Error(g.f(
      '%s was removed in version 3.0. See %s for more details.',
      'loopback.runInContext()',
      'http://loopback.io/doc/en/lb2/Using-current-context.html',
    ));
  };