Use Neo4j in Sim to query graph data with Cypher and create, merge, update, or delete nodes and relationships. Pass query results to later workflow steps for processing or storage.
Query, create, merge, update, and delete nodes and relationships.
Execute MATCH queries to read nodes and relationships from Neo4j graph database. For best performance and to prevent large result sets, include LIMIT in your query (e.g., "MATCH (n:User) RETURN n LIMIT 100") or use LIMIT $limit with a limit parameter.
Inputs and outputsParameter Type Required Description hoststring Yes Neo4j server hostname or IP address portnumber Yes Neo4j server port (default: 7687 for Bolt protocol) databasestring Yes Database name to connect to (e.g., "neo4j", "movies", "social") usernamestring Yes Neo4j username passwordstring Yes Neo4j password encryptionstring No Connection encryption mode (enabled, disabled) cypherQuerystring Yes Cypher query to execute (e.g., "MATCH (n:Person) RETURN n LIMIT 10", "MATCH (a)-[r]->(b) WHERE a.name = $name RETURN a, r, b") parametersobject No Parameters for the Cypher query as a JSON object. Use for any dynamic values including LIMIT (e.g., query: "MATCH (n) RETURN n LIMIT $limit", parameters: {limit: 100}).
Parameter Type Description messagestring Operation status message recordsarray Array of records returned from the query recordCountnumber Number of records returned summaryjson Query execution summary with timing and counters
Execute CREATE statements to add new nodes and relationships to Neo4j graph database
Inputs and outputsParameter Type Required Description hoststring Yes Neo4j server hostname or IP address portnumber Yes Neo4j server port (default: 7687 for Bolt protocol) databasestring Yes Database name to connect to (e.g., "neo4j", "movies", "social") usernamestring Yes Neo4j username passwordstring Yes Neo4j password encryptionstring No Connection encryption mode (enabled, disabled) cypherQuerystring Yes Cypher CREATE statement to execute (e.g., "CREATE (n:Person {name: $name, age: $age})", "CREATE (a)-[:KNOWS]->(b)") parametersobject No Parameters for the Cypher query as a JSON object (e.g., {"name": "Alice", "age": 30})
Parameter Type Description messagestring Operation status message summaryjson Creation summary with counters for nodes and relationships created
Execute MERGE statements to find or create nodes and relationships in Neo4j (upsert operation)
Inputs and outputsParameter Type Required Description hoststring Yes Neo4j server hostname or IP address portnumber Yes Neo4j server port (default: 7687 for Bolt protocol) databasestring Yes Database name to connect to (e.g., "neo4j", "movies", "social") usernamestring Yes Neo4j username passwordstring Yes Neo4j password encryptionstring No Connection encryption mode (enabled, disabled) cypherQuerystring Yes Cypher MERGE statement to execute (e.g., "MERGE (n:Person {name: $name}) ON CREATE SET n.created = timestamp()", "MERGE (a)-[r:KNOWS]->(b)") parametersobject No Parameters for the Cypher query as a JSON object (e.g., {"name": "Alice", "email": "alice@example.com "})
Parameter Type Description messagestring Operation status message summaryjson Merge summary with counters for nodes/relationships created or matched
Execute SET statements to update properties of existing nodes and relationships in Neo4j
Inputs and outputsParameter Type Required Description hoststring Yes Neo4j server hostname or IP address portnumber Yes Neo4j server port (default: 7687 for Bolt protocol) databasestring Yes Database name to connect to (e.g., "neo4j", "movies", "social") usernamestring Yes Neo4j username passwordstring Yes Neo4j password encryptionstring No Connection encryption mode (enabled, disabled) cypherQuerystring Yes Cypher query with MATCH and SET statements to update properties (e.g., "MATCH (n:Person {name: $name}) SET n.age = $age", "MATCH (n) WHERE n.id = $id SET n += $props") parametersobject No Parameters for the Cypher query as a JSON object (e.g., {"name": "Alice", "age": 31, "props": {"city": "NYC"}})
Parameter Type Description messagestring Operation status message summaryjson Update summary with counters for properties set
Execute DELETE or DETACH DELETE statements to remove nodes and relationships from Neo4j
Inputs and outputsParameter Type Required Description hoststring Yes Neo4j server hostname or IP address portnumber Yes Neo4j server port (default: 7687 for Bolt protocol) databasestring Yes Database name to connect to (e.g., "neo4j", "movies", "social") usernamestring Yes Neo4j username passwordstring Yes Neo4j password encryptionstring No Connection encryption mode (enabled, disabled) cypherQuerystring Yes Cypher query with MATCH and DELETE/DETACH DELETE statements (e.g., "MATCH (n:Person {name: $name}) DELETE n", "MATCH (n) DETACH DELETE n") parametersobject No Parameters for the Cypher query as a JSON object (e.g., {"name": "Alice", "id": 123}) detachboolean No Whether to use DETACH DELETE to remove relationships before deleting nodes
Parameter Type Description messagestring Operation status message summaryjson Delete summary with counters for nodes and relationships deleted
Execute arbitrary Cypher queries on Neo4j graph database for complex operations
Inputs and outputsParameter Type Required Description hoststring Yes Neo4j server hostname or IP address portnumber Yes Neo4j server port (default: 7687 for Bolt protocol) databasestring Yes Database name to connect to (e.g., "neo4j", "movies", "social") usernamestring Yes Neo4j username passwordstring Yes Neo4j password encryptionstring No Connection encryption mode (enabled, disabled) cypherQuerystring Yes Cypher query to execute (e.g., "CALL db.labels()", "MATCH (n) RETURN count(n)", "CREATE INDEX FOR (n:Person) ON (n.name)") parametersobject No Parameters for the Cypher query as a JSON object (e.g., {"name": "Alice", "limit": 100})
Parameter Type Description messagestring Operation status message recordsarray Array of records returned from the query recordCountnumber Number of records returned summaryjson Execution summary with timing and counters
Introspect a Neo4j database to discover its schema including node labels, relationship types, properties, constraints, and indexes.
Inputs and outputsParameter Type Required Description hoststring Yes Neo4j server hostname or IP address portnumber Yes Neo4j server port (default: 7687 for Bolt protocol) databasestring Yes Database name to connect to (e.g., "neo4j", "movies", "social") usernamestring Yes Neo4j username passwordstring Yes Neo4j password encryptionstring No Connection encryption mode (enabled, disabled)
Parameter Type Description messagestring Operation status message labelsarray Array of node labels in the database relationshipTypesarray Array of relationship types in the database nodeSchemasarray Array of node schemas with their properties relationshipSchemasarray Array of relationship schemas with their properties constraintsarray Array of database constraints indexesarray Array of database indexes