cypher Module

Cypher Query Language

py2neo.cypher.execute(graph_db, query, params=None, row_handler=None, metadata_handler=None, error_handler=None)[source]

Execute a Cypher query against a database and return a tuple of rows and metadata. If handlers are supplied, an empty list of rows is returned instead, with each row being passed to the row_handler as it becomes available. Each row is passed as a list of values which may be either Nodes, Relationships or properties.

Parameters:
  • graph_db – the graph database against which to execute this query
  • query – the Cypher query to execute
  • params – parameters to apply to the query provided
  • row_handler – a handler function for each row returned
  • metadata_handler – a handler function for returned metadata
  • error_handler – a handler function for error conditions

Synchronous Execution

Asynchronous Execution

Table Of Contents

Previous topic

neo4j Module

Next topic

subgraph Module

This Page