MCPcopy Create free account
hub / github.com/chainjet/platform / useFactory

Function useFactory

libs/common/src/NestjsQueryTypegooseModule.ts:24–26  ·  view source on GitHub ↗
(modelClass: ReturnModelType<new () => Entity>)

Source from the content-addressed store, hash-verified

22 return {
23 provide: getQueryServiceToken(model),
24 useFactory(modelClass: ReturnModelType<new () => Entity>) {
25 return new TypegooseQueryService(modelClass)
26 },
27 inject: [getModelToken(model.name)],
28 }
29}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected