kossnocorp / typesaurus

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

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

Open phoenix-error opened 4 weeks ago

phoenix-error commented 4 weeks 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?