cypher - How to define data type of a property in neo4j -


according neo4j-datatypes properties have primitive data types.

  1. how can define data type when create properties. exmple in following query, how can define property "age" "short" data-type explicitly?

    match (e:employee) set e.age = 55 
  2. what default data type of age per above query?

currently, cypher supports following basic types: boolean, integer, float, string, list , map.

when working cypher, not define data type. data type best fits value chosen you.

in indicated query, e.age integer. if change value 1 don't fits integer values, type changed. example: match (e:employee) set e.age = 55.5 change data type float.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -