How to load 2 different Firestore docs in one 'onUpdate' Cloud Function?
问题 I am trying to make an "onUpdate" function that loads the document that has been updated. Then I want to load another document using the data received by the wildcards. So to summarize I want to access the document that was updated and one more that is in the same collection. I want : /userProfiles/{doc1}/employees/{doc2} AND /userProfiles/{doc1} . I can get them both but when I try to use the data from one, it doesn't read the previous data and gives me a ReferenceError . The end goal is to