Closed
Description
[REQUIRED] Please fill in the following fields:
- Unity editor version: 2019.4.12f1
- Firebase Unity SDK version: 6.16.1
- Source you installed the SDK: UPM
- Problematic Firebase Component: Firestore
- Other Firebase Components in use: Everything
- Additional SDKs you are using: Facebook, Google Sign In, Apple Sign In
- Platform you are using the Unity editor on: Mac
- Platform you are targeting: Mobile (iOS and Android)
- Scripting Runtime: IL2CPP
[REQUIRED] Please describe the issue here:
When attempting to delete multiple fields in an UpdateAsync call, only the last field in the array actually gets deleted.
Steps to reproduce:
What's the issue repro rate? 100%
What happened? How can we make the problem occur?
Expected all the fields to be deleted. Only one gets deleted. Specifically in my case, only "Rooms" field gets deleted. If I comment out "Rooms", then "Pending Rooms" gets deleted. It's only ever 1 field at a time, even though I want to delete them all in my update.
Relevant Code:
//Create Dictionary
Dictionary userUpdate = new Dictionary()
{
{ "Quickplay Rooms", FieldValue.Delete },
{ "Pending Rooms", FieldValue.Delete },
{ "Rooms", FieldValue.Delete },
// { "Room Version", SaveManager.RoomVersion }
};
//Update User Profile
docRef.UpdateAsync(userUpdate).ContinueWithOnMainThread(innerTask =>
{
//Callback code in here
});