{"id":15984098,"url":"https://github.com/blacksmithop/neo4j_for_dummies","last_synced_at":"2026-03-18T17:23:16.660Z","repository":{"id":237853891,"uuid":"795357629","full_name":"blacksmithop/Neo4j_For_Dummies","owner":"blacksmithop","description":"Introduction to Neo4j","archived":false,"fork":false,"pushed_at":"2024-05-03T05:39:30.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T05:22:40.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blacksmithop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-03T05:28:44.000Z","updated_at":"2024-08-25T19:43:15.000Z","dependencies_parsed_at":"2024-05-03T11:30:12.090Z","dependency_job_id":"d9345fe9-c697-496a-b092-e3c537bf533a","html_url":"https://github.com/blacksmithop/Neo4j_For_Dummies","commit_stats":null,"previous_names":["blacksmithop/neo4j_for_dummies"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacksmithop%2FNeo4j_For_Dummies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacksmithop%2FNeo4j_For_Dummies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacksmithop%2FNeo4j_For_Dummies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacksmithop%2FNeo4j_For_Dummies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blacksmithop","download_url":"https://codeload.github.com/blacksmithop/Neo4j_For_Dummies/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249600,"owners_count":20908211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T02:04:31.297Z","updated_at":"2026-02-10T12:34:51.671Z","avatar_url":"https://github.com/blacksmithop.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"[Cheat Sheet](https://neo4j.com/docs/cypher-cheat-sheet/5/auradb-enterprise/)\n\n### 1. Database Creation\n\n```cypher\nCREATE DATABASE SampleGraphDatabase\n```\n\nThis creates a database named SampleGraphDatabase\nCurrently our database is empty\n\n### 2. Insert data\n\nData is stored in Neo4j as nodes. Each node has a label and properties.\n\nThink of labels as identifiers for a node. It tells us what type of node it is.\n\nIf you are familiar with SQL, you would know about columns. Properties are similar to columns\n\nLet us create a Person node and give it a property called name.\n\n```cypher\nCREATE (p: Person {name: \"Abhinav\", userID: 1})\n```\n\n### 3. Fetch data\n\nLet's fetch the data we just inserted\n\n```cypher\nMATCH (n:Person) RETURN n\n```\n\n![download](https://github.com/blacksmithop/Neo4j_For_Dummies/assets/60320192/9327d05b-11e2-4baa-a805-08ce95036176)\n![download](https://github.com/blacksmithop/Neo4j_For_Dummies/assets/60320192/e6eb9deb-bef8-47e3-a83b-545a3e0f4b6e)\n\nHere's the node in detail. As you can see each node columns with an id and elementid property by default.\n\nThink of \u003cid\u003e as the ID field in SQL, we will be using this in a lot of queries.\n\n`name` is the property we added to that node.\n\nNow that we have a added a node, it will show up under Datatbase Information.\n\n![download](https://github.com/blacksmithop/Neo4j_For_Dummies/assets/60320192/895ba02f-86dc-4c41-ac2e-f9ec34248333)\n\n### 4. Node Relationship\n\nWe can create relationships between nodes having different labels.\n\nFirst, let us create another node.\n\n```cypher\nCREATE (AdminProfile: Profile {created_date: datetime(\"2024-06-30T18:40:32.142+0100\"), userID: 0})\n```\n\n```cypher\nCREATE (ADMIN: Person{name: \"Admin User\"})\n```\n\nNow let us create a relationship called IsOwnerOf\n\n```cypher\nMATCH (a:Person),\n\n(b:Profile)\n\nWHERE a.userID = b.userID\n```\n\n```cypher\nCREATE (a)-[:IsOwnerOf]-\u003e(b);\n```\n\nNow we have established a relationship between Profile and Person nodes based on their shared userID .\n\n### 5. Fetch data with filters\n\nWe can filter our query results with a WHERE clause\n\n```cypher\nMATCH (n) WHERE n.userID = 1 RETURN n\n```\n\n![download](https://github.com/blacksmithop/Neo4j_For_Dummies/assets/60320192/a7fd0903-7e30-4ef2-bb82-c45976148933)\n\nAs you can see these nodes have a relation between them.\n\nHere's the entire database\n![download](https://github.com/blacksmithop/Neo4j_For_Dummies/assets/60320192/0506dfa8-6239-4eaf-91f6-16894aded59a)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacksmithop%2Fneo4j_for_dummies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacksmithop%2Fneo4j_for_dummies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacksmithop%2Fneo4j_for_dummies/lists"}