Is there a way to update an existing attribute in a node to a new value after a specific time period passes ?
For example: Node 'Offer' has the below attributes
- Offer Name (String)
- Offer ID (Numeric)
- CREATED_ON (Timestamp)
- IS_VALID ('Yes'/'No')
Process:
- When an initial "Offer" is created IS_VALID value is "Yes"
- After 7 days of creation IS_VALID value should be set to "No" automatically for each of the offers
I know that there is TTL , but I don't want my node to be deleted after 7 days, rather the attribute to be updated to "No" from "Yes"
Is there any way I can achieve this in Neo4j?