Closed
Description
Is it possible to use withConverter
to convert streaming data from Firestore directly within a firestoreAction
action so that objects can be transformed/converted to custom types?
I tried it but the issue is that bindFirestoreRef(..)
requires a firestore.CollectionReference<firestore.DocumentData> | firestore.Query<firestore.DocumentData>
as second parameter (the query/Firestore reference). So you cannot just append .withConverter(...)
to the query that is handed to the bindFirestoreRef(...)
.
Is this possible somehow?