简体   繁体   中英

searching for mutliple unique IDs using .where in cloud firestore

I wanted to search through a collection in 1 attempt and pull out files with the ids: 420, 430, and 440. looking at the documentation I see that I can write a function like.where("queueID", "==", 440) how can I extend this to look for the other IDs at the same time? can I tack on more.where's?

You can use the "in" operator if it's a fairly small number of items. Documentation here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM