name: Update and remove properties safely description: Update node properties using SET and remove properties by setting them to NULL in FalkorDB
Update and remove properties safely
Update node properties using SET and remove properties by setting them to NULL.
Usage
Use SET to update or add properties. To remove a property, set it to NULL. Note that FalkorDB does not support the REMOVE keyword.
Example
redis-cli GRAPH.QUERY social "MATCH (u:User {id: 42})
SET u.email = 'dana@example.com', u.temp = NULL"
Notes
SETcan update existing properties or add new ones- Setting a property to
NULLeffectively removes it - FalkorDB does not support the
REMOVEkeyword - useNULLinstead - Multiple property operations can be chained in a single
SETclause