Skip to content

Commit

Permalink
Clearification of supported Neo4j versions
Browse files Browse the repository at this point in the history
Added info to README and more informative error message.
  • Loading branch information
Peter Wilhelmsson authored and 2hdddg committed May 19, 2020
1 parent e79ed6d commit c4301fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ for result.Next() {
return result.Err()
```

## Neo4j and Bolt protocol versions

The driver implements Bolt protocol version 3. This means that either Neo4j server 3.5 or above can be used with the driver.

Neo4j server 4 supports both Bolt protocol version 3 and version 4.

There will be an updated driver version that supports Bolt protocol version 4 to make use of new features introduced there.

## Connecting to a causal cluster

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.
Expand Down
2 changes: 1 addition & 1 deletion neo4j/internal/bolt/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func Connect(serverName string, conn net.Conn, auth map[string]interface{}, log
}
return boltConn, nil
case 0:
err = errors.New("Server did not accept any version")
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")
default:
err = errors.New(fmt.Sprintf("Server responded with unsupported version %d", ver))
}
Expand Down

0 comments on commit c4301fa

Please sign in to comment.