Skip to content

Commit c4301fa

Browse files
Peter Wilhelmsson2hdddg
authored andcommitted
Clearification of supported Neo4j versions
Added info to README and more informative error message.
1 parent e79ed6d commit c4301fa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ for result.Next() {
5050
return result.Err()
5151
```
5252

53+
## Neo4j and Bolt protocol versions
54+
55+
The driver implements Bolt protocol version 3. This means that either Neo4j server 3.5 or above can be used with the driver.
56+
57+
Neo4j server 4 supports both Bolt protocol version 3 and version 4.
58+
59+
There will be an updated driver version that supports Bolt protocol version 4 to make use of new features introduced there.
60+
5361
## Connecting to a causal cluster
5462

5563
You just need to use `bolt+routing` as the URL scheme and set host of the URL to one of your core members of the cluster.

neo4j/internal/bolt/connect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func Connect(serverName string, conn net.Conn, auth map[string]interface{}, log
7171
}
7272
return boltConn, nil
7373
case 0:
74-
err = errors.New("Server did not accept any version")
74+
err = errors.New("Server did not accept any of the requested Bolt protocol versions. Only Neo4j version 3.5 and version 4 currently supports Bolt protocol version 3")
7575
default:
7676
err = errors.New(fmt.Sprintf("Server responded with unsupported version %d", ver))
7777
}

0 commit comments

Comments
 (0)