graph.getVertices()
will iterate through all vertexes and look for ones with that property if you do not have the auto-index turned on in your graph implementation. If you already have data and cannot just turn on the auto-indexer, you should use isindex = indexableGraph.getIndex()
and thenindex.get('classname', 'User')
It's possible to perform a
query
over multiple objects, but without specifics, it's hard to say. ForNeo4j
they use Lucene, which means thatquery()
will take a lucene query, such asclassName:Users AND username:admin
, but I cannot speak for the others.
Yeah of those DB is good for playing with, I personally found neo4j
to be the easiest, and as long as you understand their licensing structure, you shouldn't have any problems using them.