Complete the code to add a new item to the array field in Firestore using arrayUnion.
docRef.update({ items: firebase.firestore.FieldValue.[1](['newItem']) });arrayUnion adds elements to an array field without duplicates.
Complete the code to remove an item from the array field in Firestore using arrayRemove.
docRef.update({ tags: firebase.firestore.FieldValue.[1](['oldTag']) });arrayRemove removes specified elements from an array field.
Fix the error in the code to correctly add multiple items to an array field using arrayUnion.
docRef.update({ list: firebase.firestore.FieldValue.[1]('item1', 'item2') });arrayUnion accepts multiple arguments as separate items, not a single string.
Fill both blanks to update the array field by removing 'oldValue' and adding 'newValue'.
docRef.update({ data: firebase.firestore.FieldValue.[1](['oldValue']) });
docRef.update({ data: firebase.firestore.FieldValue.[2](['newValue']) });Use arrayRemove to remove and arrayUnion to add elements in separate update calls.
Fill all three blanks to remove 'x', add 'y', and add multiple items 'a' and 'b' to the array field.
docRef.update({ arr: firebase.firestore.FieldValue.[1](['x']) });
docRef.update({ arr: firebase.firestore.FieldValue.[2](['y']) });
docRef.update({ arr: firebase.firestore.FieldValue.[3]('a', 'b') });Use arrayRemove to remove, and arrayUnion to add single and multiple items.