【发布时间】:2019-08-25 07:25:32
【问题描述】:
我之前能够在 Firebase CLI 中附加 POST 请求的正文,但文档缺少任何如何再次执行此操作的示例。
例子:
我试试:
myFunction.post({body: {...}})
但收到以下错误:
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string or Buffer. Received type object
我想访问通过req.body 传递的数据。有什么想法吗?
【问题讨论】:
标签: firebase google-cloud-firestore google-cloud-functions