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

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

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

   Yes, you can indeed update properties for multiple nodes without specifying each node individually. The exact query will depend on your specific criteria for which nodes to update, but here is an example:
   ```
   MATCH (n:label4)
   WHERE n.someProperty = 'some value'
   SET n.newProperty = 'new value'
   ```
   
   In this query, MATCH (n:label4) matches all nodes with the label "label4". The WHERE clause filters these nodes to only those where someProperty has the value 'some value'. Then, SET n.newProperty = 'new value' updates the newProperty attribute of these nodes to 'new value'.
   
   


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