I want to query a firestore database for document id. Currently I have the following code:
db.collection(\'books\').where(\'id\', \'==\', \'fK3ddutEpD2qQqRMX
You can get a document by its id following this pattern:
id
firebase .firestore() .collection("Your collection") .doc("documentId") .get() .then((docRef) => { console.log(docRef.data()) }) .catch((error) => { })