I'd like to make a call to Firestore to add to an array in a document. I can do this as follows:
document.update(someField, FieldValue.arrayUnion(someArrayElement))
However, if the document doesn't exist, this fails. Is there a way to perform the above such that it creates the document if it doesn't exist? I realize that I can check for existence of the document via a get, but I'd prefer to avoid excessive DB operations.