【发布时间】:2019-10-23 08:08:46
【问题描述】:
我有用户集合,其中每个用户都包含其birthday 归档为Timestamp,所以现在我想查询生日是今天的用户,那么我如何只查询day和month 因为在这种情况下year 无关紧要。
所以我知道我们只能像 firestore.collection("user").whereEqualTo("birhtday", todaysDate) 这样按日期搜索,但我们知道它不会返回任何内容,因为它也会匹配 year
那么这里最好的解决方案是什么?
【问题讨论】:
标签: java android firebase google-cloud-firestore