【发布时间】:2021-03-05 11:50:54
【问题描述】:
我尝试混合使用where 和orderBy,但这段代码不起作用:
Stream<QuerySnapshot> getTop10Songs() async* {
yield* fireStore.collection('programs').where('title', isEqualTo: 'Lama').orderBy('subtitle').limit(2).snapshots();
}
但是如果我删除orderBy('title').。它工作正常。我应该怎么做?谢谢
【问题讨论】:
-
感谢您的所有建议。我通过以下方式解决了这个问题:stackoverflow.com/questions/56614131/…
标签: flutter google-cloud-firestore