使用Cloud Firestore触发器部署云功能时显示错误

时间:2019-02-06 07:09:25

标签: firebase google-cloud-functions

我正在尝试通过使用以下命令来部署云功能

gcloud functions deploy onDocWritten --runtime nodejs8 --trigger-event=providers/cloud.firestore/eventTypes/document.write --trigger-resource="projects/project-id/databases/(default)/coll/{collId}/subCol/{subColId}"

显示以下错误消息-

ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Bad Request], message=[The request has errors
Problems:
projects/project-id/databases/(default)/coll/{collId}/subCol/{subColId} expected to match template projects/{project}/databases/{database}/documents/{document=**}
]

谁能指出我做错了什么?

0 个答案:

没有答案