diff --git a/cypher/convertQuery.go b/cypher/convertQuery.go index 77ec5f79a9b6a81d46aaddab7fa264325ce472cf..2f8be469aa9ef8b4dcd38fa099358a11e4d863bf 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 6033deeb485b4b2affd8e14f7a8bbd54d1e8dc49..fd325d2e37832eb8ad3dd634565a44cfb72da5eb 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)