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

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

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

   Yes, you can update multiple nodes with single query. You can use either of the two methods below:
   1. Conditional base:
       `MATCH (n:label)
   WHERE n.Property = 'oldValue'
   SET n.newProperty = 'newValue'`
   
   2. Updating all nodes of a specific label:
      `MATCH (n:label)
   SET n.newProperty = 'updatedValue'`
   
   I hope this helps you.


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