Firebase 9 Firestore Get A Document By ID Using getDoc()
2 min readJul 18, 2022
Learn how to get document by ID using the getDoc() method in Firebase version 9 Cloud Firestore Database.
- Get All Documents From A Collection
- Get Document By ID → you’re here
The sample Firestore Database has a cities collection that has four documents in it like in the screenshot below.