1919
2020 < h1 class ="page-title "> Home</ h1 >
2121
22-
2322
2423
2524
26-
25+
26+
2727
2828
2929 < h3 > </ h3 >
@@ -37,7 +37,7 @@ <h3> </h3>
3737
3838
3939
40-
40+
4141
4242
4343
@@ -48,7 +48,6 @@ <h3> </h3>
4848< a href ="https://github.com/RedisGraph/redisgraph.js/releases/latest "> < img src ="https://img.shields.io/github/release/RedisGraph/redisgraph.js.svg " alt ="GitHub issues "> </ a >
4949< a href ="https://badge.fury.io/js/redisgraph.js "> < img src ="https://badge.fury.io/js/redisgraph.js.svg " alt ="npm version "> </ a >
5050< a href ="https://codecov.io/gh/RedisGraph/redisgraph.js "> < img src ="https://codecov.io/gh/RedisGraph/redisgraph.js/branch/master/graph/badge.svg " alt ="Codecov "> </ a >
51- < a href ="https://lgtm.com/projects/g/RedisGraph/redisgraph.js/context:javascript "> < img src ="https://img.shields.io/lgtm/grade/javascript/g/RedisGraph/redisgraph.js.svg?logo=lgtm&logoWidth=18 " alt ="Language grade: JavaScript "> </ a >
5251< a href ="https://snyk.io/test/github/RedisGraph/redisgraph.js?targetFile=package.json "> < img src ="https://snyk.io/test/github/RedisGraph/redisgraph.js/badge.svg?targetFile=package.json " alt ="Known Vulnerabilities "> </ a > </ p >
5352< h1 > redisgraph.js</ h1 >
5453< p > < a href ="https://forum.redislabs.com/c/modules/redisgraph "> < img src ="https://img.shields.io/badge/Forum-RedisGraph-blue " alt ="Forum "> </ a >
@@ -75,23 +74,23 @@ <h3>Example: Using the JavaScript Client</h3>
7574 await graph.query("CREATE (:person{name:'roi',age:32})");
7675 await graph.query("CREATE (:person{name:'amit',age:30})");
7776 await graph.query("MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[:knows]-> (b)");
78-
77+
7978 // Match query.
8079 let res = await graph.query("MATCH (a:person)-[:knows]-> (:person) RETURN a.name");
8180 while (res.hasNext()) {
8281 let record = res.next();
8382 console.log(record.get("a.name"));
8483 }
8584 console.log(res.getStatistics().queryExecutionTime());
86-
85+
8786 // Match with parameters.
8887 let param = {'age': 30};
8988 res = await graph.query("MATCH (a {age: $age}) return a.name", param);
9089 while (res.hasNext()) {
9190 let record = res.next();
9291 console.log(record.get("a.name"));
9392 }
94-
93+
9594 // Named paths matching.
9695 res = await graph.query("MATCH p = (a:person)-[:knows]-> (:person) RETURN p");
9796 while (res.hasNext()) {
@@ -101,7 +100,7 @@ <h3>Example: Using the JavaScript Client</h3>
101100 }
102101 graph.deleteGraph();
103102 graph.close();
104-
103+
105104 })();
106105
107106</ code > </ pre >
@@ -134,4 +133,4 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Edge.html
134133< script > prettyPrint ( ) ; </ script >
135134< script src ="scripts/linenumber.js "> </ script >
136135</ body >
137- </ html >
136+ </ html >
0 commit comments