firebase / firebase/firebase-functions

Trigger support for withConverter

Open
#872 8 comments 12 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.