如何从Google Cloud Firestore获取随机且唯一的文档?

时间:2019-05-23 15:02:31

标签: android google-cloud-firestore

我正在研究真实的错误测验,并且想要从firestore集合中逐个获取一个问题(文档)。我在这里(Firestore: How to get random documents in a collection)的stackoverflow中检查了一个答案,但是它的速度很快,我也真的不明白。

我的数据库结构很简单,它只有2个字段,分别是1.问题文本和2.正确/错误

我试图在Firestore中获取简单的查询,但无法正常运行。

请帮助我。

0 个答案:

没有答案