【发布时间】:2016-11-02 02:57:48
【问题描述】:
我有一个想听的问题:
- 在订单表上
- 其中 order.location_id = "abc123"
如何添加 WHERE 子句?
FIRDatabase.database().reference(withPath: "orders").observe(.childAdded, with: { (orderSnapshot) in
print(orderSnapshot)
})
我知道我可以在收到快照之后而不是之前进行过滤,但这会贵很多
【问题讨论】: