Create data
'CREATE' keyword should be used to create data.
Let's create movie Matrix (single node).
CREATE (Movie:Matrix { "title":"The Matrix","released":1997 })
{
"msg" : [
"success"
],
"errcode" : 0
}
Let's create triple here, Tom Hanks and Forrest Gump nodes with relation ACTED_IN as predicate.
CREATE (Person:"Tom Hanks" { "born":1956 })-[ACTED_IN { "roles": ["Forrest"]}]->(Movie:"Forrest Gump" { "released":1994 })
{
"msg" : [
"success"
],
"errcode" : 0
}
CREATE ("Person:Robert Zemeckis" { "born":1951 })-[DIRECTED]->("Movie:Forrest Gump")
{
"msg" : [
"success"
],
"errcode" : 0
}