Skip to content

Commit ac05a72

Browse files
authored
Merge pull request #7 from VeliovGroup/dev
1.0.2
2 parents adf97d6 + b372262 commit ac05a72

File tree

6 files changed

+29
-2
lines changed

6 files changed

+29
-2
lines changed

.npmignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/node_modules/
2+
node_modules
3+
build
4+
*.log
5+
/docs/
6+
.eslintrc.json
7+
cities-example.js
8+
example.js
9+
CHANGELOG.md
10+
HISTORY.md

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Changelog
2+
======
3+
For full changelog see [releases on GitHub](https://github.com/VeliovGroup/neo4j-fiber/releases)

HISTORY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
History
2+
======
3+
For full package history see [releases on GitHub](https://github.com/VeliovGroup/neo4j-fiber/releases)
File renamed without changes.

lib/driver.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,17 @@ Neo4jDB.prototype.__parseRow = function (result, columns, reactive) {
413413
} else {
414414
node[columns[i]] = new Neo4jData(row.node[i], false);
415415
}
416+
} else if (_.isArray(row.node[i]) && row.node[i].length) {
417+
node[columns[i]] = [];
418+
for (var j = 0; j < row.node[i].length; j++) {
419+
if (row.node[i][j].start != null && row.node[i][j].end != null) {
420+
node[columns[i]].push(new Neo4jRelationship(this, row.node[i][j], reactive));
421+
} else if (row.node[i][j].metadata) {
422+
node[columns[i]].push(new Neo4jNode(this, row.node[i][j], reactive));
423+
} else {
424+
node[columns[i]].push(new Neo4jData(row.node[i][j], false));
425+
}
426+
}
416427
} else {
417428
node[columns[i]] = new Neo4jData(row.node[i], false);
418429
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neo4j-fiber",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Most advanced and efficient Neo4j REST API Driver, with support of https and GrapheneDB",
55
"main": "./lib/index.js",
66
"scripts": {
@@ -40,7 +40,7 @@
4040
"author": "Dmitriy A. (http://veliovgroup.com)",
4141
"license": "BSD 3-Clause",
4242
"dependencies": {
43-
"needle": "^1.4.3",
43+
"needle": "^1.4.5",
4444
"fibers": "^1.0.15",
4545
"underscore": "^1.8.3"
4646
},

0 commit comments

Comments
 (0)