From 3b5b8304b07b6acf3291bd220ce3834c369c428b Mon Sep 17 00:00:00 2001 From: Joris <joris.l@hotmail.com> Date: Wed, 24 Nov 2021 12:54:06 +0100 Subject: [PATCH] uncommented clustering --- cypher/convertQuery.go | 14 +++++++------- cypher/convertQuery_test.go | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/cypher/convertQuery.go b/cypher/convertQuery.go index 77ec5f7..2f8be46 100644 --- a/cypher/convertQuery.go +++ b/cypher/convertQuery.go @@ -15,16 +15,16 @@ func (s *Service) ConvertQuery(totalJSONQuery *entity.IncomingQueryJSON) (*strin queryJSON := totalJSONQuery - // query, rest, isRest := checkForQueryCluster(queryJSON) + query, rest, isRest := checkForQueryCluster(queryJSON) - // if isRest { - // fmt.Println("Rest:") - // fmt.Println(rest) + if isRest { + fmt.Println("Rest:") + fmt.Println(rest) - // // If something needs to be done with other query cluster, then add code here - // } + // If something needs to be done with other query cluster, then add code here + } - finalCypher, err := createCypher(queryJSON) + finalCypher, err := createCypher(query) if err != nil { return nil, err } diff --git a/cypher/convertQuery_test.go b/cypher/convertQuery_test.go index 6033dee..fd325d2 100644 --- a/cypher/convertQuery_test.go +++ b/cypher/convertQuery_test.go @@ -802,6 +802,8 @@ func Test6(t *testing.T) { var JSONQuery entity.IncomingQueryJSON json.Unmarshal(query, &JSONQuery) + fmt.Println(JSONQuery) + fmt.Println(" ") s := NewService() cypher, err := s.ConvertQuery(&JSONQuery) -- GitLab