问题 How do you pass an array to the firebase firestore arrayUnion() function? I am getting this error when I try to pass an array. Error Error: 3 INVALID_ARGUMENT: Cannot convert an array value in an array value. Example let myArray = ["1", "2", "3"]; docRef.update({ test: firebase.firestore.FieldValue.arrayUnion(myArray) }); 回答1: I eventually found the answer of using Function.prototype.apply() in another stack overflow answer. Example For Function.prototype.apply() let myArray = ["1", "2", "3"]