Contrary to what's possible with the Java API, there doesn't seem to be a way to specify whether a numeric property is a byte
, short
, int
or long
:
CREATE (n:Test {value: 1}) RETURN n
always seems to create a long
property. I've tried toInt()
, but it is obviously understood in the mathematical sense of "integer" more than in the computer data type sense.
Is there some way I'm overlooking to actually force the type?
We have defined a model and want to insert test data using Cypher statements, but the code using the data then fails with a ClassCastException
since the types don't match.