cypher-stream
Advanced tools
Comparing version 0.0.0 to 0.0.1
{ | ||
"name": "cypher-stream", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Streams cypher query results in a clean format", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,23 +9,14 @@ var neo4j_cypher_stream = require('../index'); | ||
var results = 0; | ||
// this.timeout(20000); | ||
var limit = 2000; | ||
// cypher('match (n:Test) return n limit '+limit) | ||
// .on('data', function (result){ | ||
// results++; | ||
// console.log(results); | ||
// }) | ||
// .on('end', function() { | ||
// results.should.eql(limit); | ||
// done(); | ||
// }) | ||
// ; | ||
request.post({ | ||
url : 'http://localhost:7474/db/data/cypher', | ||
form : { query: 'match (n:Test) return n limit ' + limit }, | ||
headers : { "X-Stream": true, "Accept": "application/json" } | ||
}, function(){ | ||
done(); | ||
}); | ||
cypher('match (n {test: true}) return n limit 10') | ||
.on('data', function (result){ | ||
results++; | ||
result.n.test.should.be.ok; | ||
}) | ||
.on('end', function() { | ||
results.should.eql(10); | ||
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
2202
5
1
20
31