You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "mahinash26 (via GitHub)" <gi...@apache.org> on 2023/06/14 08:41:56 UTC

[GitHub] [age] mahinash26 commented on issue #934: Updating properties for multiple nodes in a graph database using a single query without specifying each node individually

mahinash26 commented on issue #934:
URL: https://github.com/apache/age/issues/934#issuecomment-1590746660

   ```
   MATCH (n:label4)
   WHERE n.property = "old value" 
   SET n.newProperty = "new value"
   ```
   
   
   1. Select all nodes with the label label4: MATCH (n:label4)
   2. Filter the nodes based on a specific property value: WHERE n.property = "old value"
   3. Update the newProperty for the selected nodes to a new value: SET n.newProperty = "new value"
   
   
   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: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org