Firestore arrayUnion
问题 I'm building a basic CRUD app with vue.js and firebase. I'm trying to build out a favorites functionality and have ran into a persistent problem storing the data. When a using clicks the add to favorites button I'm attempting to add the document id to an array in a "user profile" document. Here's the code: export function addNewUserAction (type, key, userID){ console.log(userID); console.log(key); firebase.firestore().collection('userActions').add({ type: type, listing: key, user: userID,