@@ -35,15 +35,15 @@ <h1 class="page-title">Source: graph.js</h1>
35
35
* RedisGraph client
36
36
*/
37
37
class Graph {
38
- /**
39
- * Creates a client to a specific graph running on the specific host/post
40
- * See: node_redis for more options on createClient
41
- *
42
- * @param {string} graphId the graph id
43
- * @param {string | RedisClient} [host] Redis host or node_redis client
44
- * @param {string} [port] Redis port
45
- * @param {ClientOpts} [options] node_redis options
46
- */
38
+ /**
39
+ * Creates a client to a specific graph running on the specific host/post
40
+ * See: node_redis for more options on createClient
41
+ *
42
+ * @param {string} graphId the graph id
43
+ * @param {string | RedisClient} [host] Redis host or node_redis client
44
+ * @param {string | int } [port] Redis port
45
+ * @param {ClientOpts} [options] node_redis options
46
+ */
47
47
constructor(graphId, host, port, options) {
48
48
this._graphId = graphId; // Graph ID
49
49
this._labels = []; // List of node labels.
@@ -57,7 +57,7 @@ <h1 class="page-title">Source: graph.js</h1>
57
57
let client =
58
58
host instanceof redis.RedisClient
59
59
? host
60
- : redis.createClient.apply(redis, [].slice.call(arguments, 1) );
60
+ : redis.createClient(port, host, options );
61
61
this._sendCommand = util.promisify(client.send_command).bind(client);
62
62
}
63
63
@@ -295,7 +295,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Edge.html
295
295
< br class ="clear ">
296
296
297
297
< footer >
298
- Documentation generated by < a href ="https://github.com/jsdoc/jsdoc "> JSDoc 3.6.3</ a > on Thu Feb 20 2020 11 :03:29 GMT+0000 (Coordinated Universal Time)
298
+ Documentation generated by < a href ="https://github.com/jsdoc/jsdoc "> JSDoc 3.6.3</ a > on Mon Mar 09 2020 13 :03:28 GMT+0000 (Coordinated Universal Time)
299
299
</ footer >
300
300
301
301
< script > prettyPrint ( ) ; </ script >
0 commit comments