Querying using Inheritance #2080
-
|
Hello Everyone, I am new to ArcadeDB. So help me out on querying using inheritance(labels). Below is the the whole schema and data, along with the whole graph of the data for reference . Now for the question Any and every answers or guidance will be appreciated. Thanks :)) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi, that gremlin query could be shortened to The opposite query should work, can you try it? |
Beta Was this translation helpful? Give feedback.

Hi, that gremlin query could be shortened to
g.V().out().hasLabel("EMPLOYEE"). It looks like thehasLabel()in Gremlin doesn't consider inheritance for that case. Since inheritance is a concept that doesn't exist in Gremlin, we hooked up the concept of label with ArcadeDB types.The opposite query should work, can you try it?