0

in mangoDB, in order to extract some fields from a document and return them only, we use a projection feature like this:

collection.find().project({field: value});

this will return me only the field value for every document in the collection.

I have many documents in firestore, how can I project for the field(s) like this?

I can't use nested sub-collection since the database is large enough so it's hard.

Thank you

Gwhyyy
  • 7,554
  • 3
  • 8
  • 35

0 Answers0