diff app/query-state.ts @ 31:4926885f8a99

selectable result columns. nicer cypher query output.
author casties
date Mon, 01 Feb 2016 20:10:55 +0100
parents 930fe7460f6b
children e8dc6a4c6773
line wrap: on
line diff
--- a/app/query-state.ts	Mon Feb 01 17:29:04 2016 +0100
+++ b/app/query-state.ts	Mon Feb 01 20:10:55 2016 +0100
@@ -16,4 +16,16 @@
     public resultRelations: any[];
     public resultColumns: any[];
     
+    getQueryText() {
+        let text = this.resultCypherQuery;
+        let hasParams = false;
+        for (let k in this.cypherQueryParams) {
+            if (!hasParams) {
+                hasParams = true;
+                text += '\n';
+            }
+            text += `[${k}='${this.cypherQueryParams[k]}'] `;
+        }
+        return text;
+    }
 }
\ No newline at end of file