You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by "Zahid07 (via GitHub)" <gi...@apache.org> on 2023/02/10 17:51:18 UTC

[GitHub] [age] Zahid07 opened a new pull request, #663: Added inheritance to create_vlabel function

Zahid07 opened a new pull request, #663:
URL: https://github.com/apache/age/pull/663

   Added inheritance functionality to `create_vlabel` function so now it is possible to a vertex label to have a parent labels. For this to be possible we need an existing parent.
   
   ```
   SELECT create_vlabel('graph_name', 'child_label_name', 'array_of_parents_label_name');
   ```
   Now let's create a Label named 'Book' in the graph named 'demo'
   
   ```
   SELECT create_vlabel('demo', 'Book');
   NOTICE:  VLabel "Book" has been created
    create_vlabel
   ---------------
   
   (1 row)
   ```
   
   After this we would do:
   
   ```
   SELECT create_vlabel('demo', 'Fantasy', ARRAY['Book']);
   ```
   
   This way Fantasy vertex would be created with Book as its Parent.


-- 
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: commits-unsubscribe@age.apache.org

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


[GitHub] [age] Zahid07 closed pull request #663: Added inheritance to create_vlabel function

Posted by "Zahid07 (via GitHub)" <gi...@apache.org>.
Zahid07 closed pull request #663: Added inheritance to create_vlabel function 
URL: https://github.com/apache/age/pull/663


-- 
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: commits-unsubscribe@age.apache.org

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