Firebase获取文件列表
在Firestore中,如果我有20个文档ID的列表,那么获取所有这些文档的最佳方法是什么?
例如,我想使用的是安哥利亚诸如搜索之类的东西,并从中获取ID列表。
我是否需要手动获取或对每个引用进行努力,还是只有使用其ID来获取文档列表的性能/简单方法?
谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
许多选项都取决于您的火灾结构如何结构化,以及您使用哪种框架来配置火箱。
一般而言,可以使用查询操作员。
在ID查询的情况下,数组是ID,您可以通过firebase.firestore.fieldpath.documentid()查询查询
A lot of the options depends on how your firestore is structured, and what framework you're using to encorporate firebase.
Generally speaking, querying a list can be done using the in query operator.
In the case of id querying, the array is id's, and you query by firebase.firestore.FieldPath.documentId()