I use lists synchronized with Firebase Realtime Database for Unity and I need to make an improvement on them. I need to find a way to delete a single item from the list without having to:
I tried to use DatabaseReference.RemoveValueAsync (), but this method only changes the value of the Node / Node to null . I use the Json Utility to translate from Json to my Custom Classes, the problem is that when encountering the null value my code simply creates a Custom Default Class. This means that every time I delete an item, it still appears in the list. Only without the data.
I could simply, when encountering null , do not add it to the local list. But this item still exists on the server and doing so would make the Local List and the Server List unequal.
I could check if the item has no data and conclude that it is deleted. But that seems kind of messy.
Does anyone know of a way to delete a Node instead of changing its value to null ?
Remembering that I use Firebase Realtime Database for Unity.