Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cypher-stream

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypher-stream - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

README.md

2

package.json
{
"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();
})
;
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc