neo4j - Cypher Invalid Query with IN operator results in CypherTypeException but Java driver swallows it -


this on cypher 1.8.2

i have following query works ok:

start person=node:personsindex('*:*')  person.name in ['peter', 'michael']  return  person; 

when run in java, with:

import org.neo4j.cypher.javacompat.executionengine; import org.neo4j.cypher.javacompat.executionresult; .... executionengine engine... executionresult result = this.engine.execute(query); 

provided have data in graph, results:

assertequals("columns :", 1, result.columns().size()); iterator<node> personnodes = result.columnas("person"); asserttrue("should have results", personnodes.hasnext()) 

if query becomes:

start person=node:personsindex('*:*')  person.name in 'peter' // know should not return  person; 

i following exception on shell, good:

cyphertypeexception: literal expected of type collection of type string 

but when run in java, exception swallowed , columnset back, no data:

executionresult result = this.engine.execute(query);  assertequals("columns :", 1, result.columns().size()); iterator<node> personnodes = result.columnas("person"); assertfalse("no results", personnodes.hasnext()) 

is expected behaviour?


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -