Run Cypher Query
AI-generatedSummary
Execute a custom Cypher query against a Neo4j graph database using the Bolt protocol.
Inputs
- Cypher Query (required) — The Cypher query to execute, for example, 'MATCH (n) RETURN n LIMIT 25'.
- Query Parameters — Optional parameters to pass to the query as a JSON object, e.g. {"name":"Alice"}.
Output shape
a list of items each containing the query result record as JSON
Each output item corresponds to a record returned by the query; node and relationship values are serialized to JSON with their properties and metadata. The operation supports parameters to be passed into the Cypher query for dynamic queries.
Examples
Example 1: Run a query to find nodes labeled 'Person' with name 'Alice'
Set 'Cypher Query' to 'MATCH (n:Person {name: $name}) RETURN n' and 'Query Parameters' to '{"name":"Alice"}'.