Skip to content
Snippets Groups Projects
Commit 3b5b8304 authored by Joris's avatar Joris
Browse files

uncommented clustering

parent 43735ce7
No related branches found
No related tags found
1 merge request!2Groupby overhaul
......@@ -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
}
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment