I want to query a firestore database for document id. Currently I have the following code:
db.collection(\'books\').where(\'id\', \'==\', \'fK3ddutEpD2qQqRMX
Try this:
db.collection('books').doc('fK3ddutEpD2qQqRMXNW5').get()
(The first query is looking for an explicit user-set field called 'id', which probably isn't what you want.)