MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / DatabaseService

Class DatabaseService

packages/core/src/__tests__/unit/service.unit.ts:553–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551 describe('Integration scenarios', () => {
552 it('service with dependencies', async () => {
553 @injectable({scope: BindingScope.SINGLETON})
554 class DatabaseService {
555 query() {
556 return ['data1', 'data2'];
557 }
558 }
559
560 @injectable({scope: BindingScope.SINGLETON})
561 class UserService {

Callers

nothing calls this directly

Calls 1

injectableFunction · 0.90

Tested by

no test coverage detected