In Firestore version 8, I can generate document ID before writing to the database with this.
const postId = postsCollection.doc().id
But how do I get the document ID in Firestore version 9 before writing to the database?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
In Firestore version 8, I can generate document ID before writing to the database with this.
const postId = postsCollection.doc().id
But how do I get the document ID in Firestore version 9 before writing to the database?