Skip to content

Commit

Permalink
add create data
Browse files Browse the repository at this point in the history
  • Loading branch information
Laith Harb authored and Laith Harb committed Nov 28, 2021
1 parent 9ef3ec8 commit c37fc47
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 03-delete.cypher
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Deleting a Node (Not going to work)
MATCH(ja {name: "Ja Morant"})
DELETE ja

// Delete node and relationships
MATCH(ja {name: "Ja Morant"})
DETACH DELETE ja

// Delete relationship
MATCH(joel {name: "Joel Embiid"}) - [rel:PLAYS_FOR] -> (:TEAM)
DELETE rel
9 changes: 9 additions & 0 deletions 04-create.cypher
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE (lebron:PLAYER:COACH:GENERAL_MANAGER { name: "LeBron James", height: 2.01 })

CREATE (lebron:PLAYER:COACH:GENERAL_MANAGER { name: "LeBron James", height: 2.01 }) - [:PLAYS_FOR {salary: 40000000}] -> (:TEAM {name: "LA Lakers"})

CREATE (lebron:PLAYER:COACH:GENERAL_MANAGER { name: "LeBron James", height: 2.01 })
CREATE (:TEAM {name: "LA Lakers"})

MATCH (lebron:PLAYER {name: "LeBron James"}), (lakers:TEAM {name: "LA Lakers"})
CREATE (lebron) - [:PLAYS_FOR] -> (lakers)

0 comments on commit c37fc47

Please sign in to comment.