sqltabs
sqltabs copied to clipboard
How to get a document by document id in google firestore?
Hi, I would like to know how to get a specific document in google firestore by id
Hi, I don't think it's possible atm. Only collection instances can be displayed. Probably it deserves to be implemented one day.
@kuamatzin You can select like below:
collection('your_collection')
.where('__name__', '==' , 'your_document_id')
.select();
@kuamatzin You can select like below:
collection('your_collection') .where('__name__', '==' , 'your_document_id') .select();
Yep this one worked well for me:
collection("users").where("__name__", "==" , "USER_ID_HASH").select()