From 7cabfab8f39f964610ce7360b7f489650110cee8 Mon Sep 17 00:00:00 2001 From: JohT <7671054+JohT@users.noreply.github.com> Date: Mon, 9 Mar 2026 08:10:41 +0100 Subject: [PATCH] Fix typescript module DEPENDS_ON loop and missing weights --- .../Add_DEPENDS_ON_relationship_to_resolved_modules.cypher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypher/Typescript_Enrichment/Add_DEPENDS_ON_relationship_to_resolved_modules.cypher b/cypher/Typescript_Enrichment/Add_DEPENDS_ON_relationship_to_resolved_modules.cypher index 61799f387..de9170b17 100644 --- a/cypher/Typescript_Enrichment/Add_DEPENDS_ON_relationship_to_resolved_modules.cypher +++ b/cypher/Typescript_Enrichment/Add_DEPENDS_ON_relationship_to_resolved_modules.cypher @@ -3,8 +3,8 @@ MATCH (module:TS:Module)-[dependsOn:DEPENDS_ON]->(externalModule:TS:ExternalModule) MATCH (externalModule)-[:IS_IMPLEMENTED_IN]->(resolvedModule:TS:Module) - OPTIONAL MATCH (module)-[existingDependency:DEPENDS_ON]->(resolvedModule) WHERE module <> resolvedModule + OPTIONAL MATCH (module)-[existingDependency:DEPENDS_ON]->(resolvedModule) CALL { WITH module, dependsOn, resolvedModule, existingDependency MERGE (module)-[resolvedDependsOn:DEPENDS_ON]->(resolvedModule) ON CREATE SET resolvedDependsOn = dependsOn