Skip to content

Commit 75ca51d

Browse files
committed
Merge pull request #15 from neo4j/bolt
change scheme to bolt
2 parents 924e012 + 9a040b3 commit 75ca51d

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var params = {
3535

3636

3737
// Create a Session object to contain all Cypher activity.
38-
var driver = neo4j.driver("neo4j://localhost");
38+
var driver = neo4j.driver("bolt://localhost");
3939
var session = driver.session();
4040

4141
// Run a Cypher statement within an implicit transaction

examples/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var params = {
3232
age_b: 44
3333
};
3434

35-
var driver = neo4j.driver("neo4j://localhost");
35+
var driver = neo4j.driver("bolt://localhost");
3636

3737
var streamSession = driver.session();
3838
var streamResult = streamSession.run(statement.join(' '), params);

test/driver.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var neo4j = require("../build/node/neo4j");
2222
describe('driver', function() {
2323
it('should expose sessions', function() {
2424
// Given
25-
var driver = neo4j.driver("neo4j://localhost");
25+
var driver = neo4j.driver("bolt://localhost");
2626

2727
// When
2828
var session = driver.session();

test/internal/connector.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var connect = require("../../build/node/internal/connector.js").connect;
2222
describe('connector', function() {
2323
it('should read/write basic messages', function(done) {
2424
// Given
25-
var conn = connect("neo4j://localhost")
25+
var conn = connect("bolt://localhost")
2626

2727
// When
2828
conn.initialize( "mydriver/0.0.0", {
@@ -37,7 +37,7 @@ describe('connector', function() {
3737
});
3838
it('should retrieve stream', function(done) {
3939
// Given
40-
var conn = connect("neo4j://localhost")
40+
var conn = connect("bolt://localhost")
4141

4242
// When
4343
var records = [];

test/session.test.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var StatementType = require("../build/node/result-summary").statementType;
2323
describe('session', function() {
2424
it('should expose basic run/subscribe ', function(done) {
2525
// Given
26-
var driver = neo4j.driver("neo4j://localhost");
26+
var driver = neo4j.driver("bolt://localhost");
2727

2828
// When & Then
2929
var records = [];
@@ -42,7 +42,7 @@ describe('session', function() {
4242

4343
it('should keep context in subscribe methods ', function(done) {
4444
// Given
45-
var driver = neo4j.driver("neo4j://localhost");
45+
var driver = neo4j.driver("bolt://localhost");
4646
function myObserver(){
4747
this.local = 'hello';
4848
var privateLocal = 'hello';
@@ -64,7 +64,7 @@ describe('session', function() {
6464

6565
it('should call observers onError on error ', function(done) {
6666
// Given
67-
var driver = neo4j.driver("neo4j://localhost");
67+
var driver = neo4j.driver("bolt://localhost");
6868

6969
// When & Then
7070
var records = [];
@@ -79,7 +79,7 @@ describe('session', function() {
7979

8080
it('should accept a statement object ', function(done) {
8181
// Given
82-
var driver = neo4j.driver("neo4j://localhost");
82+
var driver = neo4j.driver("bolt://localhost");
8383
var statement = {text: "RETURN 1 = {param} AS a", parameters: {param: 1}};
8484

8585
// When & Then
@@ -99,7 +99,7 @@ describe('session', function() {
9999

100100
it('should expose basic run/then/then/then ', function(done) {
101101
// Given
102-
var driver = neo4j.driver("neo4j://localhost");
102+
var driver = neo4j.driver("bolt://localhost");
103103
// When & Then
104104
driver.session().run( "RETURN 1.0 AS a")
105105
.then(
@@ -117,7 +117,7 @@ describe('session', function() {
117117

118118
it('should expose basic run/catch ', function(done) {
119119
// Given
120-
var driver = neo4j.driver("neo4j://localhost");
120+
var driver = neo4j.driver("bolt://localhost");
121121
// When & Then
122122
driver.session().run( "RETURN 1 AS").catch(
123123
function(error) {
@@ -130,7 +130,7 @@ describe('session', function() {
130130

131131
it('should expose summarize method for basic metadata ', function(done) {
132132
// Given
133-
var driver = neo4j.driver("neo4j://localhost");
133+
var driver = neo4j.driver("bolt://localhost");
134134
var statement = "CREATE (n:Label {prop:{prop}}) RETURN n";
135135
var params = {prop: "string"}
136136
// When & Then
@@ -149,7 +149,7 @@ describe('session', function() {
149149

150150
it('should expose plan ', function(done) {
151151
// Given
152-
var driver = neo4j.driver("neo4j://localhost");
152+
var driver = neo4j.driver("bolt://localhost");
153153
var statement = "EXPLAIN CREATE (n:Label {prop:{prop}}) RETURN n";
154154
var params = {prop: "string"}
155155
// When & Then
@@ -169,7 +169,7 @@ describe('session', function() {
169169

170170
it('should expose profile ', function(done) {
171171
// Given
172-
var driver = neo4j.driver("neo4j://localhost");
172+
var driver = neo4j.driver("bolt://localhost");
173173
var statement = "PROFILE MATCH (n:Label {prop:{prop}}) RETURN n";
174174
var params = {prop: "string"}
175175
// When & Then
@@ -191,7 +191,7 @@ describe('session', function() {
191191

192192
it('should expose cypher notifications ', function(done) {
193193
// Given
194-
var driver = neo4j.driver("neo4j://localhost");
194+
var driver = neo4j.driver("bolt://localhost");
195195
var statement = "EXPLAIN MATCH (n), (m) RETURN n, m";
196196
// When & Then
197197
var result = driver.session().run( statement );

test/types.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('map values', function() {
6464
describe('node values', function() {
6565
it('should support returning nodes ', function(done) {
6666
// Given
67-
var driver = neo4j.driver("neo4j://localhost");
67+
var driver = neo4j.driver("bolt://localhost");
6868
var session = driver.session();
6969

7070
// When
@@ -84,7 +84,7 @@ describe('node values', function() {
8484
describe('relationship values', function() {
8585
it('should support returning relationships', function(done) {
8686
// Given
87-
var driver = neo4j.driver("neo4j://localhost");
87+
var driver = neo4j.driver("bolt://localhost");
8888
var session = driver.session();
8989

9090
// When
@@ -104,7 +104,7 @@ describe('relationship values', function() {
104104
describe('path values', function() {
105105
it('should support returning paths', function(done) {
106106
// Given
107-
var driver = neo4j.driver("neo4j://localhost");
107+
var driver = neo4j.driver("bolt://localhost");
108108
var session = driver.session();
109109

110110
// When
@@ -133,7 +133,7 @@ describe('path values', function() {
133133

134134
function testVal( val ) {
135135
return function( done ) {
136-
var driver = neo4j.driver("neo4j://localhost");
136+
var driver = neo4j.driver("bolt://localhost");
137137
var session = driver.session();
138138

139139
session.run("RETURN {val} as v", {val: val})

0 commit comments

Comments
 (0)