I want to update the ending node for all relationships that are type :foo coming into node A to node B.
For example, for all relationships that are type :foo coming into node A (node A as the end node), no matter where their starting node is, I want them to set the end node to node B. Node C --:foo--> Node A Node D --:foo--> Node A Node E --:bar--> Node A would become: Node C --:foo--> Node B Node D --:foo -> Node B Node E --:bar--> Node A On Wed, Aug 31, 2011 at 5:00 PM, Marko Rodriguez <[email protected]>wrote: > Hi, > > If you tell me in English what you want to do, I can give you the Gremlin > query. With Gremlin, you can traverse and update in a single query so > perhaps it will meet your needs. > > Marko. > > http://markorodriguez.com > > On Aug 31, 2011, at 5:13 PM, Nuo Yan wrote: > > > I looked through the REST APIs and didn't see an endpoint to move > > relationships. Is such operation possible? For example, given a set of > > relationships all end in one node, I want to send a bulk request to > update > > their end nodes to another node. > > > > If there is no REST API for updating/moving relationship, what is the > best > > way to do this? Can gremlin do it easily? Or do I have to delete all of > the > > relationships and create new ones to the new end node? > > > > Thanks, > > Nuo > > _______________________________________________ > > Neo4j mailing list > > [email protected] > > https://lists.neo4j.org/mailman/listinfo/user > > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

