read transaction
A transaction that only reads, and so can be routed to any member of a cluster.
Example
A function that only reads, run by execute_read.
python
with driver.session() as session:
def get_answer(tx, answer):
result = tx.run("RETURN $answer AS answer", answer=answer)
return result.consume()
# Call the transaction function
summary = session.execute_read(get_answer, answer=42)Lessons that use this term
The lesson and course links below open in a new tab.
2 lessons use this term. Results are ordered by term density.
Building Neo4j Applications with TypeScript1 mention
- Executing QueriesNeo4j & TypeScript— executes a callback function in a read transaction session.executeWrite() — executes a callback function in a write1 mention
Developing with Neo4j MCP Tools1 mention
- Using the Neo4j Cypher MCP ServerUsing Neo4j MCP Toolsthe query is executed within a read transaction, and is not capable of performing potentially destructive1 mention