我正在尝试通过使用以下命令来部署云功能
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=**}
]
谁能指出我做错了什么?