My database structure is something like this:
"users": {
"PXZwwGvu0lNwJeov8CMMrETnzVx1": {
"name": "Ada Lovelace",
"timestamp" : July 4, 2018 at 4:31:27 PM UTC+5:45
"happy": true,
}
"PXZwwGvu0lNwJeov8CMMrETnzVx2": {
"name": "Charles Babbage",
"timestamp" : July 5, 2018 at 5:29:15 PM UTC+5:45
"happy": true,
}
"PXZwwGvu0lNwJeov8CMMrETnzVx3": {
"name": "Elon Musk",
"timestamp" : July 7, 2018 at 9:21:37 PM UTC+5:45
"happy": true,
}
}
Here the "timestamp" denotes the time of creation of the document.I want to change the value of field "happy" from true to false exactly one day after the creation of document.The user may close the app after the document creation but the field value should still be changed. Is there any way to do so?