Drivers

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.

No published lesson uses this term yet.

All glossary terms