I\'m trying to write a Google cloud function that reads from another document. (Other document = not the document that triggered the cloud function.)
It\'s a bit of
Thank you, @frank-van-puffelen.
This is the working solution:
exports.updateLikeCount = functions.firestore .document('likes/{likeId}').onWrite((event) => { return admin.firestore() .collection('ruleSets') .doc(1234) .get() .then(doc => { console.log('Got rule: ' + doc.data().name); }); });