Skip to content

Question: how to use this for mapping FirebaseFirestore.DocumentData in to a custom Object Module? #333

Closed
@aytunch

Description

@aytunch

Inside of my Cloud Functions code written in TypeScript, I have 2 custom models which I want to populate with FirebaseFirestore.DocumentData maps. Also when writing to Firestore, I would like to deserialize the custom objects into FirebaseFirestore.DocumentDatas.

Can I use this library with cloud functions? would it help with this mission? I am somewhat of a noob with web technologies and backend. So please help me out.

This explains the issue in greater detail. with code:
Also before coming up with this library, I asked a question in SO: Cloud Functions(TypeScript) - How to use custom Models instead of nested maps/dictionaries. If I can solve it with this, It would be nice to have an answer in SO so others can see this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionQuestions about the usage of the library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions