We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f1a8c5 commit 7d80995Copy full SHA for 7d80995
README.md
@@ -10,6 +10,24 @@
10
# Example: Using the JavaScript Client
11
12
```javascript
13
-
+let graph = new RedisGraph('social');
14
+graph
15
+.query("CREATE (:person{name:'roi',age:32})")
16
+.then( () => {
17
+ return graph.query("CREATE (:person{name:'amit',age:30})");
18
+})
19
20
+ return graph.query("MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[knows]->(a)")
21
22
23
+ return graph.query("MATCH (a:person)-[knows]->(:person) RETURN a")
24
25
+.then( (res) => {
26
+ while(res.hasNext()){
27
+ let record = res.next();
28
+ console.log(record.getString('a.name'));
29
+ }
30
+ console.log(res.getStatistics().queryExecutionTime());
31
+});
32
33
```
0 commit comments