Hi, I have this statement. g.v('0').outE[[label:'HOSTS']].inV.filter{ it['Key'].equalsIgnoreCase('romikoagency') }.inE[[label:'USER_BELONGS_TO']].outV.filter{ it['Username'].equalsIgnoreCase('romiko.derbynew') }.ifThenElse{it.outE[[label:'USER_LINKED_TO_CENTRE']].inV.hasNext()}{it.outE[[label:'USER_LINKED_TO_CENTRE']].inV.Name}{println ${it} "Unknown"}.as('Centre')
I then take this query and do a table projection, however I get the following error. println java.lang.String cannot be cast to com.tinkerpop.blueprints.pgm.Vertex Is there a better way to do this then? I want to reduce our calls to the DB for performance and finding it a bit tough wrapping everything into one query. Currently the above query is split into two different queries. Much appreciated. _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user