Firebase Cloud Functions - Delete Entries where timestamp field is over a month old and run daily
问题 This is a two in one question. Part 1: I am storing data in Firestore, and one of my fields is an 'end_date' timestamp field. How can I write a cloud function, so that when this field is over a month in the past, the record is deleted? Part 2: How can I get this to run every day? 回答1: You can solve this problem, and related problems, relatively easy by combining the following technologies: Nodejs, firebase-admin SDK, and the async/await pattern. This is not a full solution, but just to give