I have been trying out Cypher a lot lately, and everywhere I look I see "Michael Hunger"! Thanks for the workaround! There are only 4 possible values for line.axo, so this workaround is very doable :)
Thanks again. On Tuesday, June 24, 2014 1:14:01 PM UTC-6, Michael Hunger wrote: > > 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] > <javascript:>>: > > 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] <javascript:>. > 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.
