I am trying to get the uid that Firebase generate for my new records/documents, the one shown here:
I'm trying to get a document, but since I don't have its id, I cannot reach it. This code won't return the records' uids, it only returns the records themselves:
return this.afDB.collection('games');
Also, I cannot use the id I generate to query it, and if i use a collection to be able to query it, it just won't let me update or delete the record.
So, this doesn't work:
this.afDB.doc('games/' + game.id).delete();
Is there a way to get that UID I am looking for?