Hey,
Yeah, that seemed to do the trick...works great in the console...
however, it looks like it's not working with jruby..
jruby-1.6.7.2 :176 > q = Neo4j._query("START n = node(*) MATCH
n-[r:`Person#created_work`]->c RETURN
n.name, count(r) as connections
ORDER BY connections DESC")
jruby-1.6.7.2 :177 > q.to_a
NativeException: java.lang.ClassCastException:
org.jruby.gen.InterfaceImpl1332573772 cannot be cast to
org.neo4j.kernel.GraphDatabaseAPI
from org/neo4j/tooling/GlobalGraphOperations.java:39:in `<init>'
from org/neo4j/tooling/GlobalGraphOperations.java:51:in `at'
from org/neo4j/cypher/internal/executionplan/builders/GraphGlobalStartBuilder.scala:45:in
`apply'
from org/neo4j/cypher/internal/executionplan/builders/GraphGlobalStartBuilder.scala:45:in
`apply'
from org/neo4j/cypher/internal/pipes/StartPipe.scala:38:in `apply'
from org/neo4j/cypher/internal/pipes/StartPipe.scala:37:in `apply'
from scala/collection/TraversableLike.scala:200:in `apply'
from scala/collection/TraversableLike.scala:200:in `apply'
from scala/collection/LinearSeqOptimized.scala:59:in `foreach'
from scala/collection/immutable/List.scala:45:in `foreach'
from scala/collection/TraversableLike.scala:200:in `flatMap'
from scala/collection/immutable/List.scala:45:in `flatMap'
from org/neo4j/cypher/internal/pipes/StartPipe.scala:37:in `createResults'
from org/neo4j/cypher/internal/pipes/MatchPipe.scala:32:in `createResults'
from org/neo4j/cypher/internal/pipes/ExtractPipe.scala:38:in `createResults'
from org/neo4j/cypher/internal/pipes/EagerAggregationPipe.scala:48:in
`createResults'
It looks like the node(*) is returning something that cannot be cast
as a ruby enumerable. If I change the node(*) to something like
node(3) I can iterate on it just fine...any suggestions how I can work
around this one?
Thanks again for all the help...b,fitz.