Ok i think i have figured it out but there may be a bug

if i use the gremlin web console and send this command

g.v(0).outE('friend').sideEffect{g.removeEdge(it); }

it will only delete the first relationship 

however

if i send the same command to the HTTP web console i receive the following
error 

==> 500 Internal Server Error
==> {
==>   "message" : "Relationship[42] not found.",
==>   "exception" : "org.neo4j.graphdb.NotFoundException: Relationship[42]
not found.",
==>   "stacktrace" : [
"org.neo4j.kernel.impl.core.NodeManager.getRelForProxy(NodeManager.java:568)",
"org.neo4j.kernel.impl.core.RelationshipProxy.getStartNode(RelationshipProxy.java:65)",
 
......

but all relationship are deleted


as it turns out Relationship[42] is the first relationship of type 'friend'
on the g.v(0) node.

is this something i am doing?




--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Gremlin-add-remove-vertex-edge-functions-tp3402170p3402299.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to