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 without the property is encountered, and will instead return NULL
.
This is the same behavior 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
syntax
CREATE a={foo:’bar’}
syntax has been deprecated.
Instead, use CREATE (a {foo:’bar’})
.
DELETE
to remove properties in Cypher
DELETE a.prop
syntax has been deprecated.
Instead, use REMOVE a.prop
.
START
clauses using indexes (ie. 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 of 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.
WITH
syntax
WITH
syntax, === <identifiers> ===
, can not be used.
Use the WITH
keyword instead.
Copyright © 2014 Neo Technology