neo4j - Relationship properties are confused with nodes resulting in SyntaxError: Don't know how to compare that -


if make following cypher query results expected:

match (:keydata {key:"kgv"})<-[k:keydata]-(s:symbol)  k.value>15.0  return k.value 
  • nodes of label keydata have properties {key: "some string"}
  • nodes of label symbol have properties {key: "some string"}
  • relationships of label keydata have properties {value: 123.45}

but if symbol nodes matched before:

match (s:symbol)  match (:keydata {key:"kgv"})<-[k:keydata]-(s)  k.value>15.0  return k.value 

i error: don't know how compare that. left: "evn" (string); right: 15.0 (double)

i using neo4j 2.0.1

you comparing string value double value, not possible. have 2 options. store values in different type or use neo4j 2.1.0-m01 , use tofloat() method. e.g.

where tofloat(k.value)>15.0 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -