The "delete then create a new one" approach is not only counter-intuitive, 
it but also changes the id of the relationship.
If an application use internal IDs externally as a unique identifier (I 
assume neo4j 2.*, which disabled ID reuse, allows doing so now), this means 
lots of extra work and potential errors.

On Tuesday, November 13, 2012 9:45:59 AM UTC-8, Matt Kieblesz wrote:
>
> Hello,
>
> Sorry in advance - it look like a newbie question :)
>
> is there is possible way to change relationship status/label?? I tried to 
> do this with gremlin:
>
>
>    - gremlin> e = g.e(10)
>    - ==> e[10][9-->10]
>    - gremlin> e.label
>    - ==> 
>    - gremlin> e = g.e(14)
>    - ==> e[14][8-next->13]
>    - gremlin> e.label
>    - ==> next
>    - gremlin> e.label='is_in'
>    - 
>    ==> Cannot set readonly property: label for class: 
> com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jEdge
>
>
> The solution to delete relationship and create new one with desired 
> relationship label (in this case 'next') is a little bit cunterintuitive. I 
> will be gratefull to someone for providing me an answer.
>

-- 
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.

Reply via email to