How many different values do you have for line.axo ? what you can do is a workaround that does a conditional update:
> CREATE (group)-[r:AXO]->(aco) foreach (x in case when line.axo = "prop1" then [1] else [] end | SET r.prop1 = true ) add one foreach for each potential value. Michael Am 24.06.2014 um 18:43 schrieb Eric Olson <[email protected]>: > Using > > USING PERIODIC COMMIT 50000 > LOAD CSV WITH HEADERS FROM 'file:/mcpdata/8_grp-aco.csv' AS line > MATCH (group:Group { name: line.group }), (aco:ACO { name: line.aco }) > CREATE (group)-[:AXO { line.axo: true }]->(aco) > > fails because as you can see on the last line I am trying to set a property > NAME with the csv value instead of the property VALUE. I get the following > error: > > Invalid input '.': expected an identifier character, whitespace, ':' or '}' > (line 4, column 28) > "CREATE (group)-[:AXO { line.axo: true }]->(aco)" > ^ > > Is there a way I can do this? I sure hope so! Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
