Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from neo4j import GraphDatabase
# Declare the connector to the graph database
uri = "bolt://localhost:7687"
driver = GraphDatabase.driver(uri, auth=("neo4j", "pwd"), encrypted=False)
# Define the node properties
node = {
'url': '',
'picture': '',
'id': 'jeanmidev'
# Build the statement to deploy the node
statement = f"CREATE (u:User {url : $url,picture : $picture,id : $id})"
# Execute the statement
with driver.session() as session:, node)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment