I'm trying to restrict certain operations towards Firestore to creating or appending to an array. How should I do that? How can I distinguish arrayUnion() from arrayDelete()? What about distinguishing array operations from all the other operations?
Update: So far, from what I got by digging into the Firestore API, I'm guessing maybe something like allow create, FieldValue.arrayUnion: if true could work, but I haven't tested it yet, will update when I tested it.