Welcome to the Neo4j Playground! This repository is a dedicated workspace for building, testing, and sharing utilities that make managing Neo4j databases easier.
- aura_reset/: Scripts for resetting Neo4j Aura instances.
- sample_data/: Cypher scripts for loading sample records into Neo4j.
Located in: aura_reset/
The reset_aura.sh and reset_aura_v2.sh scripts provide an automated way to reset a Neo4j Aura database.
To reset your Neo4j Aura instance, use reset_aura_v2.sh in one of two ways:
Pass the path to the credentials file you downloaded when creating your Aura instance:
./aura_reset/reset_aura_v2.sh <path_to_credentials_file.txt>See Neo4j-Aura-Credentials-Sample.txt for the expected format.
./aura_reset/reset_aura_v2.sh <username> <password> <aura_uri>Located in: sample_data/
This folder contains Cypher scripts to populate your database with initial data:
- 01_constraints.cypher: Sets up necessary unique constraints.
- 02_nodes.cypher: Creates nodes (entities).
- 03_relationships.cypher: Creates relationships between nodes.
You can use cypher-shell to load these files:
cypher-shell -a <aura_uri> -u <username> -p <password> -f sample_data/01_constraints.cypher
cypher-shell -a <aura_uri> -u <username> -p <password> -f sample_data/02_nodes.cypher
cypher-shell -a <aura_uri> -u <username> -p <password> -f sample_data/03_relationships.cypher