谁能解释在编写云功能脚本时必须使用的导出对象?

时间:2019-07-20 07:29:35

标签: firebase google-cloud-functions

在Firebase文档中找不到此内置导出对象(在以下代码中用作exports.myFunction)的解释。此导出对象实际上是做什么的,它是从哪里来的?

const functions = require('firebase-functions');

exports.myFunction = functions.firestore
  .document('...')
  .onWrite((change, context) => { /* ... */ });

0 个答案:

没有答案
相关问题