Currently, as far as I know, there is no command-line interface for querying Firestore. The only way to query our documents is to do it through our own program, or through Firestore console. In the console, the only way to query a document by its id is to use the browser "Find" feature. However, when the number of documents in a collection increases above a threshold, which I don't know, Google Chrome cannot find the id. It's very inconvenient to scroll through the list of documents and use the find function of the browser again and again to find the id.
Please advise a more efficient way or implement a more efficient way to query documents by id in Firestore Console.
New document with same ID should not be allowed in the same collection. It should be possible to fetch an already existing document from a previous import.
While you can't filter a collection by a document ID, you can find a document with a specific ID by entering it in the little address bar/breadcrumb trail that sits above your data structure in the console.
Steps:
Hover over the breadcrumb trail at the top and click on the pencil icon
Enter a /
and then the ID of the document
Hit Enter
The console will now load the document with the ID you entered.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With