【发布时间】:2020-09-30 15:22:15
【问题描述】:
我目前正在填写一个漂亮的表日历 (https://pub.dev/packages/table_calendar)
为了获取我目前正在执行的数据:
Firestore.instance
.collection('nurseries')
.document(widget._favoriteNurseryId)
.collection('events')
.orderBy('eventDateStart')
.snapshots(),
我需要找到一种解决方案,仅针对屏幕上显示的月份过滤数据。现在我获取数据库上的所有事件。它花费了我太多的 firestore 读取。
【问题讨论】:
-
嘿,您能否在保存事件的过程中包含 Firestore 结构?
标签: flutter