I am trying to write a Cloud Function in Node.js.
The function requires to return a Cloud Firestore document data as a json form.
I have read the document, where I could find Cloud Functions can be triggered on Cloud Firestore events such as onCreate and onDelete.
However, beyond these event cases, where the documents are not updated nor deleted, I would like to know if this could be done using functions.firestore
object.
Is it possible? Or should I just use the REST API for Cloud Firestore and create sth like functions.https.onRequest
. If your choice is the latter how should this be implemented in Flutter?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…