Im having a database as below,
Here, I want to dynamically delete the existing list "20211127", and add a new list with a different name in place of deleted one.
I have been going over this issue for 6 days now, without a solution. Could you please help me with this?
CodePudding user response:
To remove the existing node and add a new node in one operation would be something like this:
String listToDelete = "20211127";
String listToAdd = "20220629";
Map dataToAdd = ...; //