I want to get a list of the documents below in a list in the Cloud Firestore.
I have looked at How to get a list of document IDs in a collection Cloud Firestore? but it does not help me.
I want to get a list of the documents below in a list in the Cloud Firestore.
I have looked at How to get a list of document IDs in a collection Cloud Firestore? but it does not help me.
How to get a list of documents in a collection, without taking all the fields in the documents
When you read data from Firestore, you read the entire document, including all fields. There is no way you can only read only some fields. It's the entire document or nothing. Firestore listeners fire on the document level and this mechanism cannot be changed.
If you only need to read the values of two fields, for example, then you should consider storing only those two fields in a separate document. This practice is called denormalization, and it's a quite common practice when it comes to NoSQL databases.