I want to query a firestore database for document id. Currently I have the following code:
db.collection(\'books\').where(\'id\', \'==\', \'fK3ddutEpD2qQqRMX
Just to clear confusion here
Remember, You should use async/await to fetch data whether fetching full collection or a single doc.
async/await
collection
doc
async function someFunction(){ await db.collection('books').doc('fK3ddutEpD2qQqRMXNW5').get(); }