1
我是云端函数的新手,我认为它们很酷。我已经搜索了可以通过“事件”调用的完整方法列表以及如何使用它们的文档,但是我没有找到任何方法。以下代码中的示例用于调用data.current.child等。有人可以帮助我找到“事件”下方法的文档。Cloud Functions“event =>”Documentation
exports.getPath = functions.database.ref('/Transaction/{id}')
.onWrite(event => {
// Grab the current value of what was written to the Realtime Database.
const trans = event.data.current.child('Request').val();
非常感谢Bob – MbaiMburu