Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-19-2023 06:35 AM
I'm updating properties on a node using the n += {}
syntax, but my cypher triggers a deprecation warning. I don't understand what I'm doing wrong, nor what the preferred syntax should be.
MATCH (v:Venue) WHERE v.addressState =""
WITH v LIMIT 1
CALL apoc.spatial.reverseGeocode(v.locationPt.latitude, v.locationPt.longitude) YIELD data, description
WITH v, data,
{
addressState: right(data['ISO3166-2-lvl4'],2),
addressZipCode: data.postcode,
addressStreet1: data.road,
addressCity: data.town,
addressCounty: data.county,
addressFullOSM: description
} AS props
SET v += props // <<< warning msg is here
RETURN v.facID, properties(v), props, data
This feature is deprecated and will be removed in future versions. The use of nodes or relationships for setting properties is deprecated and will be removed in a future version. Please use properties()
instead.
I saw a deprecated feature in 5.0 to prevent v += n
for property setting, but I'm not setting properties using a node. I'm extracting the properties from the node into a map, then using that to set (or so I thought).
Can anyone help me understand this one?
Environment
DBMS is v5.3, APOC is v5.3.
Running on Neo4j Desktop v1.5.6.
Running query in the Browser v5.4.0.
All the sessions of the conference are now available online