Firebase中是否有where子句类似功能,我们可以使用子查询来过滤结果,例如 1.我想代表UID jut(例如JOIN查询)从表格(JSON)获取数据 2.如果JOIN不可能,那么我可以编写子查询,比如从1个表中获取结果并在下一个查询中过滤这些结果
drbooking-3c1a0
BookInfo
-KNkxgu4Ax8sjCQ3KwUP
drid:
"-KNaaiAVaOnEACTPvGj4"
time1:
1000
time2:
2000
uid:
"z1MEs4wy8TNJmrJHfK7QWIzd57R2"
-KNq7kYuEiNQFtbVrHXE
drid:
"-KNaaiAVaOnEACTPvGj4"
time1:
2000
time2:
3000
uid:
"z1MEs4wy8TNJmrJHfK7QWIzd57R2"
-KNq7rHK7eO9QrYeTwIt
drid:
"-KNaaiAVaOnEACTPvGj4"
time1:
4000
time2:
6000
uid:
"z1MEs4wy8TNJmrJHfK7QWIzd57R2"
DRInfo
-KNaaiAVaOnEACTPvGj4
description:
"new Reception"
name:
"Chitrakoot"
-KNab6DYSZLH4iM7GbdO
description:
"Main DR"
name:
"Nalanda"
在上述结构中,我想获得那些在特定时间没有预订的DR列表,即一段时间内可用的DR列表