Skip to content

Use withConverter together with bindFirestoreRef for firestoreAction #608

Closed
@sceee

Description

@sceee

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions