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)
});