Skip to content

Commit bcfaf04

Browse files
committed
fix example
1 parent d636000 commit bcfaf04

File tree

12 files changed

+43
-50
lines changed

12 files changed

+43
-50
lines changed

.babelrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

.editorconfig

Lines changed: 0 additions & 19 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
.project
44
package-lock.json
55
yarn.lock
6+
/examples/node_modules

examples/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "redisgraph-example",
3+
"version": "1.0.0",
4+
"description": "Example using redisgraph.js",
5+
"author": "RedisLabs",
6+
"license": "BSD 3",
7+
"repository": {
8+
"type": "git",
9+
"url": "git://github.com/redislabs/redisgraph.js.git"
10+
},
11+
"dependencies": {
12+
"redisgraph.js": "^1.1.0"
13+
},
14+
"main": "redisGraphExample.js"
15+
}

examples/RedisGraphExample.js renamed to examples/redisGraphExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const RedisGraph = require("../src/redisGraph");
1+
const RedisGraph = require("redisgraph.js").RedisGraph;
22

33
let graph = new RedisGraph("social");
44

index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const Record = require("./src/record"),
2+
RedisGraph = require("./src/redisGraph"),
3+
ResultSet = require("./src/resultSet"),
4+
Statistics = require("./src/statistics"),
5+
Label = require("./label");
6+
7+
module.exports = {
8+
Record: Record,
9+
RedisGraph: RedisGraph,
10+
ResultSet: ResultSet,
11+
Statistics: Statistics,
12+
Label: Label
13+
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redisgraph.js",
3-
"version": "1.0.4",
3+
"version": "1.1.0",
44
"description": "Connect to RedisGraph 1.0.0 and up from JavaScript",
55
"author": "RedisLabs",
66
"license": "BSD 3",
@@ -17,5 +17,5 @@
1717
"scripts": {
1818
"test": "mocha --exit"
1919
},
20-
"main": "./src/index.js"
20+
"main": "index.js"
2121
}

src/index.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/redisGraph.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const redis = require("redis");
2-
const util = require("util");
3-
const ResultSet = require("./ResultSet");
1+
const redis = require("redis"),
2+
util = require("util"),
3+
ResultSet = require("./resultSet");
44

55
/**
66
* RedisGraph client

src/resultSet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const Statistics = require("./statistics");
2-
const Record = require("./record");
1+
const Statistics = require("./statistics"),
2+
Record = require("./record");
33

44
/**
55
* Hold a query result

0 commit comments

Comments
 (0)