This section outlines deprecations in Neo4j 1.9 in order to help you find a smoother transition path to future releases.
!
and ?
property operators in Cypher
node.property = "value"
will not fail when a node is encountered without the property, and will instead return null. This is the same behaviour as node.property! = "value"
, and thus the !
property operator is deprecated and will be removed.
Expressions using the ?
property operator, such as node.property? = "value"
, are also deprecated. Please use not(has(node.property)) OR node.property = "value"
instead.
CREATE a={foo:’bar’}
syntax has been deprecated.
Instead, use CREATE (a {foo:’bar’})
.
DELETE a.prop
syntax has been deprecated. Instead, use REMOVE a.prop
.
START n=node:index({key}='value')
). Use the literal key names instead.
MATCH ({node})-->(other))
).
Note that this form was only possible when mixing the embedded Java API and cypher, and thus does not affect users Neo4j Server.
FOREACH
, EXTRACT
, etc
|
instead of a :
to separate the components of the statement. For example, EXTRACT(n in ns : n.prop)
is replaced with EXTRACT(n in ns | n.prop)
. The iterating functions include FOREACH
, EXTRACT
, REDUCE
, ANY
, ALL
, SINGLE
and NONE
. Note the alternative form using |
is also possible in Neo4j 1.9.2 and later.
Copyright © 2013 Neo Technology