cancel
Showing results for 
Search instead for 
Did you mean: 

Node type inheritance like TigerGraph?

seeotter
Node

Hello NeoPpl, a basic/dumb question, sorry for noobing up your forum. I have seen in TigerGraph a kind of inheritance as follows:

CREATE VERTEX person (first_name STRING NOT NULL, last_name STRING NOT NULL, age INT, gender STRING, state STRING, ​PRIMARY KEY​​(first_name, last_name))
#a professor schema object is created; its type is professor vertex type
#which is a subtype of person vertex type.
CREATE VERTEX professor EXTENDS person (position STRING)

My question is, can anything like that be done in Neo4j, or how do people handle these types of inheritance requirements in graph design? I'd be very grateful for any insights, thank you!

0 REPLIES 0