feat: add generic ER composition root

This commit is contained in:
2026-09-07 18:18:02 +02:00
parent 243918a255
commit 35a8ff0f2a
+10
View File
@@ -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;
}