feat: add generic ER composition root
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { createN0dClient } from "../clients/n0d-client";
|
||||
import { EntityResolutionService } from "../er/entity-resolution-service";
|
||||
|
||||
export const entityResolutionService = new EntityResolutionService();
|
||||
|
||||
let batchService: EntityResolutionService | undefined;
|
||||
export function getBatchEntityResolutionService(): EntityResolutionService {
|
||||
if (!batchService) batchService = new EntityResolutionService({ n0dClient: createN0dClient() });
|
||||
return batchService;
|
||||
}
|
||||
Reference in New Issue
Block a user