Node.js 如何在云函数中调用导出函数中的子函数
我有一个函数getUsers,我正在我的云函数上部署它 index.jsNode.js 如何在云函数中调用导出函数中的子函数,node.js,firebase,google-cloud-functions,Node.js,Firebase,Google Cloud Functions,我有一个函数getUsers,我正在我的云函数上部署它 index.js 我不想导出computeData函数,只想在导出函数中调用它。Firebase在云函数中的操作方法是什么?只需像在其他函数中一样调用它: exports.getUsers = functions.https.onRequest((request, response) => { computeData(...) }) 就像在其他函数中一样调用它: exports.getUsers = functions.ht
我不想导出computeData函数,只想在导出函数中调用它。Firebase在云函数中的操作方法是什么?只需像在其他函数中一样调用它:
exports.getUsers = functions.https.onRequest((request, response) => {
computeData(...)
})
就像在其他函数中一样调用它:
exports.getUsers = functions.https.onRequest((request, response) => {
computeData(...)
})