Registry /
database / neo4j-neo4j-go-driver-v5
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
neo4j
✓ github.com/neo4j/neo4j-go-driver/v5/neo4j
Connects to Neo4j and runs a simple query.
package main
import (
"context"
"fmt"
"github.com/neo4j/neo4j-go-driver/v5/neo4j"
)
func main() {
driver, _ := neo4j.NewDriverWithContext("bolt://localhost:7687", neo4j.BasicAuth("neo4j", "password", ""))
defer driver.Close(context.Background())
session := driver.NewSession(context.Background(), neo4j.SessionConfig{})
defer session.Close(context.Background())
result, _ := session.Run(context.Background(), "RETURN 1", nil)
if result.Next(context.Background()) {
fmt.Println(result.Record().Values[0])
}
}
Upgrade
Version history
5.28.4latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.