Firestore database order limit queries

I have written a query to provide me the document in a collection of documents that contains the most recent date contained in a date field inside the documents, using the order and limit query (i.e., I search the date fields in the documents in the collection in descending order and limit the return to one document.

However, I can’t seem to figure out how to use the information I get back. I get back the ID of the document I am looking for in the following format:

([<FIRQueryDocumentSnapshot: 0x6000001b60d0, id: QEbQV3QeeOCm3wUavAZ4>])

The QEbQV3… is the document ID I am looking for but I can’t figure out how to access the information in that document.

I have read the Firestore documentation which is how I discovered the order limit query but can’t figure the rest out. I am very new to coding and would appreciate if someone could point me in the right direction?


I have resolved this issue myself, no need to respond, thanks