In vanilla Redis I can INCR
a numeric key to increase it by one. Can I do the same with a RedisGraph attribute?
Increment a node attribute in RedisGraph
449 views Asked by JRideout At
1
In vanilla Redis I can INCR
a numeric key to increase it by one. Can I do the same with a RedisGraph attribute?
To increment the value of a property in your graph you have to use Cipher itself.
Using this very basic example:
Create a new product in
demograph
:Get the stock:
Then you can use a query with a Set to update the product stock:
Get the stock:
If you do not put a condition, each nodes will be updated.