firebase / firebase/firebase-functions
Trigger support for withConverter
Open
feature request
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 232
- Avg merge
- 20h 46m
- Merged PRs (30d)
- 15
Description
Not sure if you accept Feature Requests, but I'll make it brief:
Would be nice if the `onCreate`, `onWrite`, `onUpdate` and `onDelete` triggers had support for `withConverter`:
Example:
```typescript
firestore
.document(`businesses/{businessId}`)
.withConverter(new BusinessConverter())
.onWrite(async (change, context) => {
const business: Business = change.after.data()
})
```
Thanks
ref: https://github.com/googleapis/nodejs-firestore/issues/1449
Contributor guide
Assessment
This issue has not been assessed yet.