kossnocorp / typesaurus

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

support generate documentId before add document. #93

Closed locona closed 3 years ago

locona commented 3 years ago

The usage in firebase is as follows.

firebase.firestore.collection('_').doc().id

The reason is that you want to publish the id before generating the document. How about this method?

locona commented 3 years ago

Resolve

use docId()