Google Firestore - How to get multiple documents by multiple IDs in one round trip?
P粉536532781
2023-08-27 20:19:08
<p>I was wondering if it is possible to get multiple documents by a list of IDs in one round trip (network call) to the Firestore database. </p>
Actually, you would use firestore.getAll like this
Or use Promise syntax
If you are in Node:
https://github.com/ googleapis/nodejs-firestore/blob/master/dev/src/index.ts#L978
This is specifically for the server SDK
Update: Cloud Firestore now supports IN queries!