cypher-stream
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -25,3 +25,3 @@ var oboe = require('oboe'); | ||
columns.forEach(function (column, i) { | ||
data[column] = result[i].data; | ||
data[column] = result[i].data || result[i]; | ||
}); | ||
@@ -28,0 +28,0 @@ stream.push(data); |
{ | ||
"name": "cypher-stream", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Streams cypher query results in a clean format", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -56,3 +56,3 @@ var should = require('should'); | ||
cypher('match (n:Test) return n limit 1') | ||
.on('data', function() { | ||
.on('data', function () { | ||
throw expectedError; | ||
@@ -72,2 +72,12 @@ }) | ||
}); | ||
it('returns non-node results', function (done) { | ||
cypher('match (n:Test) return labels(n) as labels limit 1') | ||
.on('data', function (result) { | ||
result.labels[0].should.equal('Test'); | ||
}) | ||
.on('end', function () { | ||
done(); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18325
134