【问题标题】:Cloud functions for firebase generation 2Cloud functions for firebase generation 2
【发布时间】:2022-12-01 15:18:17
【问题描述】:

How can I implement firestore database trigger (onCreate, onUpdate) with Cloud functions for firebase gen 2 ?

As in Firestore cloud function gen1 we can use Cloud firestore database triggers, But how can we implement this in Firestore cloud function gen 2

【问题讨论】:

    标签: firebase google-cloud-firestore google-cloud-functions


    【解决方案1】:

    As mentioned in the documentation, Cloud functions gen 2 do not support Cloud Firestore triggers at the moment.

    You'll have to use Gen 1 functions if your application rely on Firestore triggers.

    【讨论】:

      猜你喜欢
      • 2017-09-07
      • 2018-01-03
      • 2018-04-19
      • 2017-08-26
      • 2017-08-08
      • 2017-08-07
      • 1970-01-01
      • 2017-10-09
      • 1970-01-01
      相关资源
      最近更新 更多