driver
The client library an application uses to connect to Neo4j and run Cypher.
Also written: drivers
Example
Creating a driver, then running a query with it.
python
from neo4j import GraphDatabase
driver = GraphDatabase.driver(
"neo4j://localhost:7687",
auth=("neo4j", "your-password")
)
records, summary, keys = driver.execute_query(
"RETURN COUNT {()} AS count"
)The driver holds the address and the credentials, sends the Cypher to Neo4j, and hands back the records. Neo4j publishes one for Python, JavaScript, Java, .NET and Go, and each works this way.
Lessons that use this term
The lesson and course links below open in a new tab.
88 lessons use this term. The 40 with the highest term density are listed here.
Using Neo4j with Go17 mentions
- Create a Driver InstanceThe Driverdo you install the Neo4j Go Driver and create a new driver2 mentions
- Result transformerThe Driveryour knowledge of result transformers in the Neo4j Go Driver1 mention
- Working with dates and timesHandling resultsyour knowledge of working with temporal types in the Neo4j Go Driver1 mention
- Using spatial typesHandling resultsyour knowledge of working with spatial types in the Neo4j Go Driver1 mention
- Accessing Graph TypesHandling resultsproperties from nodes and types from relationships returned by the Neo4j Go Driver1 mention
- Installing the driverThe Driverrun Cypher statements in a Go application, you'll need the [Neo4j Go Driver8 mentions
- Error handlingBest practicesNeo4j Go driver provides comprehensive error handling capabilities that help you manage different types of errors1 mention
Using Neo4j with .NET27 mentions
- Handling errorsBest practicesdo you handle errors in the Neo4j .NET Driver1 mention
- Create a Driver InstanceThe Driverdo you install Neo4j and create a new driver1 mention
- Write transactionsBest practicesdo you run a transaction in the Neo4j .NET Driver1 mention
- Using spatial typesHandling resultsdo you work with spatial types in the Neo4j .NET Driver1 mention
- Working with dates and timesHandling resultsdo you work with dates and times in the Neo4j .NET Driver1 mention
- Object MappingThe Driverdo you map query results to C# objects using the driver's built-in object1 mention
- Installing the driverThe Driverrun Cypher statements in a .NET application, you'll need the [Neo4j .NET Driver12 mentions
- Dates and timesHandling resultsNeo4j .NET Driver provides its own temporal types for working with dates and3 mentions
- Error handlingBest practicesWhen working with Neo4j, you may encounter various database errors that need to be handled gracefully in your application. The driver throws exceptions that inherit from Neo4jException for all database-related2 mentions
- Mapping results to objectsThe DriverThe driver includes an object mapping feature that allows you to map query results directly to C#2 mentions
Using Neo4j with Python19 mentions
- Create a Driver InstanceThe Driverdo you install the Neo4j and create a new driver1 mention
- Installing the driverThe Driverrun Cypher statements in a Python application, you'll need the [Neo4j Python Driver11 mentions
- Working with Dates and TimesHandling resultsyour understanding of how to work with temporal types in the Neo4j Python Driver1 mention
- Using spatial typesHandling resultscheck your understanding of how to work with spatial types in the Neo4j Python Driver1 mention
- Accessing Graph TypesHandling resultsunderstanding of how to work with graph types returned by the Neo4j Python Driver1 mention
- Handling Database ErrorsBest practicesThe driver exports a Neo4jError class that is inherited by all exceptions thrown by the2 mentions
Using Neo4j with Java22 mentions
- Create a Driver InstanceThe Driveryour understanding of the driver instantiation pattern covered in the previous1 mention
- Accessing Graph TypesHandling resultsyour understanding of how to access graph types returned by the Neo4j Java Driver1 mention
- Working with Dates and TimesHandling resultsyour understanding of how to work with temporal types in the Neo4j Java Driver1 mention
- Using spatial typesHandling resultsyour understanding of how to work with spatial types in the Neo4j Java Driver1 mention
- Using the driverThe DriverNeo4j Java Driver8 mentions
- Mapping Results to Java ObjectsThe DriverThe driver includes an object mapping feature that allows you to3 mentions
- SetupThe DriverNeo4j driver is included in the pom.xml file, so you do not need to install it3 mentions
Building GraphRAG TypeScript MCP tools32 mentions
- Connecting to Neo4jBuilding Database-Connected Featureslesson, you will learn how to connect your MCP server to Neo4j by managing the driver at module scope and sharing it across all your tool19 mentions
- Add Neo4j ConnectionBuilding Database-Connected Featuresthe previous lesson, you learned about module-scope driver management and how it helps you properly manage database8 mentions
Aura Graph Analytics fundamentals10 mentions
- Drive AGA from the neo4j driverFrom the Python clienta service that already speaks Neo4j, you can drive AGA from the plain neo4j driver alone — no extra dependency, no new10 mentions
Building Neo4j Applications with TypeScript21 mentions
- InstallationNeo4j & TypeScriptNeo4j JavaScript Driver is available on NPM under the package name8 mentions
- The Neo4j Type SystemNeo4j & TypeScriptwe need to take extra care when working with integers in the Neo4j JavaScript Driver8 mentions
Building Neo4j Applications with Spring Data15 mentions
- Spring Data Neo4j Building BlocksGetting Startedyou get to the next lesson, you might notice that you don't create a driver object and manage sessions and transactions to connect the application to9 mentions
- Configure Neo4j ConnectionGetting Starteddo not need to manage a driver object, but you still need to put the database connection details somewhere for the3 mentions
Building GraphRAG Python MCP tools19 mentions
- Connecting to Neo4jBuilding Database-Connected FeaturesPerformance: Creating a new driver connection for every tool call is slow and inefficient Resource leaks: If the tool fails, the driver may not be10 mentions
- Add Neo4j ConnectionBuilding Database-Connected Featuresa lifespan function that initializes a Neo4j driver on5 mentions
Aura In Production14 mentions
- Security LogsLogs and Query Optimizationuser: User whose credentials were used to authenticate the session Driver: Client driver used to connect Message text: Search within log messages5 mentions