Inheritance - Query by base class #1013
Replies: 2 comments
-
Hard to say without a concrete code example. |
Beta Was this translation helpful? Give feedback.
-
Hello @bajicn1988, |
Beta Was this translation helpful? Give feedback.
-
In the sample project and in documentation it is said that inheritance is supported by querying by base class, but I can not get it to work.
I have abstract BaseVertex class, then TransitiveVerrtex : BaseVertex which is concrete class, and then several different classes, inherited from TransitiveVertex. I'm trying to query graph using:
QuerySource.V() and I'm not getting any results. Also QuerySource.V(id) does not return expected result, but QuerySource.V(id) returns the vertex.
Am I missing something, should there be any specific implementation or annotation in TransitiveVertex class, should I use parameterless ctor, which I'm not using at the moment or my existing ctor?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions