Home > front end >  Firestore: find element by id from Firebase
Firestore: find element by id from Firebase

Time:11-13

I have created an user from my app in Firebase: enter image description here

and with it I also created some elements that I store in Firestore:

enter image description here

So as you can see, that elements is linked to this new user

If I go to Firestore db, all this elements are created ok but I don't know how to search by id, only by fields that I created for that user (email, name, etc):

enter image description here enter image description here

CodePudding user response:

As per Franks' answer, you can find a document/element with a specific ID by entering it in the little address bar/breadcrumb trail that sits above the data structure in the console. Pencil icon on the breadcrumbs are hidden by default, hover on the breadcrumbs for it to appear. By clicking on it, address bar will be shown. Enter a / and then the ID of the document/element.

For more detailed information, you can refer to this thread.

  • Related