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

[GitHub] [age] Munmud opened a new issue, #969: How to edit node label name ?

Munmud opened a new issue, #969:
URL: https://github.com/apache/age/issues/969

   ```sql
   SELECT * from cypher('munmud', $$
   CREATE 
   (:Movie {id: 'movie1', name: 'The Shawshank Redemption', imdbRank : 25}),
   (:Movie {id: 'movie2', name: 'The Godfather', imdbRank : 60}),
   (:Movie {id: 'movie3', name: 'The Dark Knight', imdbRank : 100})
   $$) as (V agtype);
   ```
   how to change all label name from `Movie` to `OldMovie`


-- 
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.apache.org

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


[GitHub] [age] Omar-Saad commented on issue #969: How to edit node label name ?

Posted by "Omar-Saad (via GitHub)" <gi...@apache.org>.
Omar-Saad commented on issue #969:
URL: https://github.com/apache/age/issues/969#issuecomment-1579230438

   Currently you can't change label name in Apache AGE. 
   
   So, you have to recreate them with the new label then delete the old ones and you can do this with only one query.
   
   ```
   MATCH (m:Movie)
   CREATE (om:OldMovie)
   SET om = m
   REMOVE m:Movie
   RETURN om
   ```
   
   This query first matches all nodes with `Movie` label and then creates a copy of it with a new label `OldMovie`.


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


[GitHub] [age] shady-cj commented on issue #969: How to edit node label name ?

Posted by "shady-cj (via GitHub)" <gi...@apache.org>.
shady-cj commented on issue #969:
URL: https://github.com/apache/age/issues/969#issuecomment-1579245550

   It’s not possible at the moment.  The work around is to create a new node using the properties of the old node to create the new node..


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


[GitHub] [age] Zainab-Saad commented on issue #969: How to edit node label name ?

Posted by "Zainab-Saad (via GitHub)" <gi...@apache.org>.
Zainab-Saad commented on issue #969:
URL: https://github.com/apache/age/issues/969#issuecomment-1579092151

   At present, the label names can not be changed. Take a look at this [issue](https://github.com/apache/age/issues/464)


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


[GitHub] [age] Munmud closed issue #969: How to edit node label name ?

Posted by "Munmud (via GitHub)" <gi...@apache.org>.
Munmud closed issue #969: How to edit node label name ?
URL: https://github.com/apache/age/issues/969


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


[GitHub] [age] jrgemignani commented on issue #969: How to edit node label name ?

Posted by "jrgemignani (via GitHub)" <gi...@apache.org>.
jrgemignani commented on issue #969:
URL: https://github.com/apache/age/issues/969#issuecomment-1579161708

   The only way to do it would be to recreate the node with the new label and then delete the old node.


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