kossnocorp / typesaurus

🦕 Type-safe TypeScript-first ODM for Firestore
https://typesaurus.com
415 stars 36 forks source link

How do I get the Data with the Id? #141

Open phoenix-error opened 1 month ago

phoenix-error commented 1 month ago

I want to use Schema['users'] and now I would like to have the Data with the Id. Do I have to define a property id: Schema['users']['Id'] in the User Model and can then use Data or do I have to use Schema['users']['Doc'].

Which is the intended way?