Filter by Superclasses

Hello everyone,

I have a question. How can I filter by Superclasses? For example SELECT out('ID').outE(STATE_OF)[to = ?].inV()[value = ?] FROM (TRAVERSE out('PARENT_OF') FROM ?) WHERE @class = 'Store'

I’m using OrientDB 3.0.34.

Thanks in advance,
Philip

Hi @teufel

Instead of

@class = 'something' 

you can use

@this instanceof 'something'

This will check for class hierarchy

Thanks

Luigi