This is for Neo4j Milestone Release 2.1.0-M01. I have been trying to import this small .csv file:
I have tried four different formats for column D.
- type: "club"
- type: club
- type:club
- club
My Cypher query:
LOAD CSV FROM "file:<PATH_TO_FILE>/Soccer_players.csv" AS line
MERGE (p:Player {name: line[0]})
MERGE (t:Team {name: line[1]})
CREATE (p)-[:PLAYS_FOR {type: line[3]}]->(t)
When I don't include "{type: line[3]}", it imports fine. When trying to add this relationship property I get the error message
[null] is not a supported property value
Yes, I can import as a node, but why doesn't it work to set a property on a relationship in this way.