hammadsaleemm commented on issue #717: URL: https://github.com/apache/age/issues/717#issuecomment-1506746321
Indeed, Cypher currently does not have a built-in clause for removing labels from vertices and edges. This can be inconvenient in situations where you need to update the label of a node or edge. Your proposed solution of using the REMOVE clause to remove a label would be a great addition to the language. It would make it more flexible and allow for easier updating of graph data. As an alternative, you can use the SET clause to update the label of a node or edge. For example, to change the label of a node from "Label1" to "Label2", you can use the following query: ``` MATCH (a:Label1) SET a:Label2 REMOVE a:Label1 ``` This would add the "Label2" label to the node and remove the "Label1" label. However, this approach can become cumbersome if you have a large number of labels to update, so having a built-in REMOVE clause would definitely be useful. I hope this helps! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
