Related issues
N/A
[REQUIRED] Version info
node: any
firebase-functions: 7.2.0 (1st gen)
firebase-tools: latest
firebase-admin: latest
[REQUIRED] Test case
This works:
exports.myFunction = functions.firestore
.document('my-collection/{docId}')
.onWrite((change, context) => { /* ... */ });
This doesn't:
exports.myFunction = functions.firestore
// note the leading slash here
.document('/my-collection/{docId}')
.onWrite((change, context) => { /* ... */ });
[REQUIRED] Steps to reproduce
Try to deploy a function with a leading slash in the Firestore resource string.
[REQUIRED] Expected behavior
Leading slashes are supported.
[REQUIRED] Actual behavior
Deploy fails
Were you able to successfully deploy your functions?
No
Related issues
N/A
[REQUIRED] Version info
node: any
firebase-functions: 7.2.0 (1st gen)
firebase-tools: latest
firebase-admin: latest
[REQUIRED] Test case
This works:
This doesn't:
[REQUIRED] Steps to reproduce
Try to deploy a function with a leading slash in the Firestore resource string.
[REQUIRED] Expected behavior
Leading slashes are supported.
[REQUIRED] Actual behavior
Deploy fails
Were you able to successfully deploy your functions?
No