From fe8e4c802cf438b54b2897a96b544d45c2ae463e Mon Sep 17 00:00:00 2001 From: Leonardo <leomilho@gmail.com> Date: Tue, 25 Jun 2024 16:32:58 +0200 Subject: [PATCH] chore(cy): remove relation from with clause --- cypherv2/convertQuery.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cypherv2/convertQuery.go b/cypherv2/convertQuery.go index df7e9ed..b58fb16 100755 --- a/cypherv2/convertQuery.go +++ b/cypherv2/convertQuery.go @@ -195,11 +195,13 @@ func createWhereLogic(op string, left string, whereLogic string, cacheData query remainingNodes = append(remainingNodes, entity.id) } } - for _, relation := range cacheData.relations { - if relation.id != left { - remainingNodes = append(remainingNodes, relation.id) - } - } + + // TODO: Relation temporarily ignored due to unnecessary added complexity in the query + // for _, relation := range cacheData.relations { + // if relation.id != left { + // remainingNodes = append(remainingNodes, relation.id) + // } + // } remainingNodesStr := "" if len(remainingNodes) > 0 { -- GitLab