Skip to content

Commit ea327fc

Browse files
authored
Merge pull request #90 from chayim/ck-removing-deprecated-lgtm
Removing LGTM
2 parents 51c3503 + 6a4a396 commit ea327fc

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![GitHub issues](https://img.shields.io/github/release/RedisGraph/redisgraph.js.svg)](https://github.com/RedisGraph/redisgraph.js/releases/latest)
44
[![npm version](https://badge.fury.io/js/redisgraph.js.svg)](https://badge.fury.io/js/redisgraph.js)
55
[![Codecov](https://codecov.io/gh/RedisGraph/redisgraph.js/branch/master/graph/badge.svg)](https://codecov.io/gh/RedisGraph/redisgraph.js)
6-
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/RedisGraph/redisgraph.js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/RedisGraph/redisgraph.js/context:javascript)
76
[![Known Vulnerabilities](https://snyk.io/test/github/RedisGraph/redisgraph.js/badge.svg?targetFile=package.json)](https://snyk.io/test/github/RedisGraph/redisgraph.js?targetFile=package.json)
87

98

@@ -47,23 +46,23 @@ let graph = new RedisGraph("social");
4746
await graph.query("CREATE (:person{name:'roi',age:32})");
4847
await graph.query("CREATE (:person{name:'amit',age:30})");
4948
await graph.query("MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[:knows]->(b)");
50-
49+
5150
// Match query.
5251
let res = await graph.query("MATCH (a:person)-[:knows]->(:person) RETURN a.name");
5352
while (res.hasNext()) {
5453
let record = res.next();
5554
console.log(record.get("a.name"));
5655
}
5756
console.log(res.getStatistics().queryExecutionTime());
58-
57+
5958
// Match with parameters.
6059
let param = {'age': 30};
6160
res = await graph.query("MATCH (a {age: $age}) return a.name", param);
6261
while (res.hasNext()) {
6362
let record = res.next();
6463
console.log(record.get("a.name"));
6564
}
66-
65+
6766
// Named paths matching.
6867
res = await graph.query("MATCH p = (a:person)-[:knows]->(:person) RETURN p");
6968
while (res.hasNext()) {
@@ -73,7 +72,7 @@ let graph = new RedisGraph("social");
7372
}
7473
graph.deleteGraph();
7574
graph.close();
76-
75+
7776
})();
7877

7978
```

docs/index.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
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&amp;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(&quot;CREATE (:person{name:'roi',age:32})&quot;);
7675
await graph.query(&quot;CREATE (:person{name:'amit',age:30})&quot;);
7776
await graph.query(&quot;MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[:knows]->(b)&quot;);
78-
77+
7978
// Match query.
8079
let res = await graph.query(&quot;MATCH (a:person)-[:knows]->(:person) RETURN a.name&quot;);
8180
while (res.hasNext()) {
8281
let record = res.next();
8382
console.log(record.get(&quot;a.name&quot;));
8483
}
8584
console.log(res.getStatistics().queryExecutionTime());
86-
85+
8786
// Match with parameters.
8887
let param = {'age': 30};
8988
res = await graph.query(&quot;MATCH (a {age: $age}) return a.name&quot;, param);
9089
while (res.hasNext()) {
9190
let record = res.next();
9291
console.log(record.get(&quot;a.name&quot;));
9392
}
94-
93+
9594
// Named paths matching.
9695
res = await graph.query(&quot;MATCH p = (a:person)-[:knows]->(:person) RETURN p&quot;);
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

Comments
 (0)