Search code examples
graph-databasesorientdb

Can I find all vertices that have no connected edges in OrientDB?


Is there an easy way to query a cluster for all vertices that have no incoming edges?


Solution

  • This is more complete because also covers the case the collection exists but it's empty:

    select from the_cluster where in().size() = 0