我有一个查询,它在我的服务器中按我的时间戳值排序,当前的时间戳由我的pojo设置为日期 data class Timestamp(@ServerTimestamp val timestamp:Date= null) 此时间戳放在firestore中,格式为 ? uid",currentUser.uid) .orderBy("status&q
我试图使用where和orderBy在Firestore上运行一个简单的查询。查询不起作用。经过一些研究,我发现我可能需要在Firestore中构建索引。我这样做了,但是再次,这个查询不起作用。误差结果
The initial orderBy() field "[[FieldPath([lastTime]), true]][0][0]" has to be the same as the where'package:cloud_fi
我试图按照整数字段对存储在Firestore中的文档进行排序,但是在尝试这样做时,我得到了这个错误。is not a subtype of type Collection Referencefinal CollectionReference timetableCollection = Firestore.instance.collection('timetables').orderBy('Period');
其中句点只包含integers.The代码,如果我不执行orderBy
我在Firestore的Android SDK中创建查询时遇到了一点麻烦。我希望将文档限制为上周的文档,以减少文档的数量,并使用用户提供的文本过滤结果。SDK要求第一个orderBy子句使用与whereGreaterThan子句相同的字段。另一方面,startAt和endAt似乎也绑定到第一个orderBy子句。绑定到第二个orderBy?或者实现从某个日期之后创建的firestore中获取过滤文档的目标?如果删除whereGreaterThan和first o