Skip to content
Snippets Groups Projects
Commit 59dc3a2b authored by Fjodor's avatar Fjodor
Browse files

spatie ipv newline

parent 35dbbd76
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,8 @@ func createQuery(JSONQuery *entity.IncomingQueryJSON) *string {
}
relationUnion = TrimSuffix(relationUnion, ",")
ret += nodeUnion + relationUnion + ";\n"
// hier zat een newline
ret += nodeUnion + relationUnion + "; "
}
nodeSet := make(map[int]bool)
......@@ -188,7 +189,8 @@ name is the autogenerated name of the node consisting of "n" + the index of the
Return: a string containing a single LET-statement in AQL
*/
func createNodeMatch(node *entity.QueryEntityStruct, name *string) *string {
header := fmt.Sprintf("MATCH (%v:%v)\n", *name, node.Type)
// hier zat een newline
header := fmt.Sprintf("MATCH (%v:%v) ", *name, node.Type)
constraints := *createConstraintStatements(&node.Constraints, *name)
ret := header + constraints
return &ret
......@@ -219,8 +221,8 @@ func createRelationMatch(relation *entity.QueryRelationStruct, relationName stri
relationReturn += ")"
constraintReturn := *createConstraintStatements(&relation.Constraints, relationName)
ret := relationReturn + "\n" + constraintReturn
// hier zat een newline
ret := relationReturn + " " + constraintReturn
return &ret
}
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