run_query: Connect to Neo4j and Run a Simple Query

View source: R/run_query.R

run_queryR Documentation

Connect to Neo4j and Run a Simple Query

Description

This function demonstrates connecting to a Neo4j database via the Python neo4j driver and using pandas to manipulate the returned data.

Usage

run_query(uri, user, password, query)

Arguments

uri

Neo4j URI, e.g., "bolt://localhost:7687"

user

Username for Neo4j

password

Password for Neo4j

query

A Cypher query to execute, e.g. "MATCH (n) RETURN n LIMIT 5"

Value

A data.frame containing the query results.


bolt4jr documentation built on April 3, 2025, 6:03 p.m.