Hi, I'm looking at creating nodes + relationships using apoc.graph.fromDocument
but am having trouble figuring out how to specify properties for relationships. For example, how would one specify the "roles:Forrest" property of the ACTED_IN relationship? Any help much appreciated! Thanks!!
CREATE (a:Actor {name:'Tom Hanks'})-[r:ACTED_IN {roles:'Forrest'}]->(m:Movie {title:'Forrest Gump'})
RETURN *
Something like the following but not sure how to incorporate the 'roles' bit...
{
"id": 1,
"type": "Actor",
"name": "Tom Hanks",
"actedIn": [
{
"type": "movies",
"id": 1,
"title": "Forrest Gump"
}
]
}