【发布时间】:2018-06-10 17:49:40
【问题描述】:
例如,我为我的书籍列表设置了动态过滤器,我可以在其中设置特定的颜色、作者和类别。 此过滤器可以一次设置多种颜色和多个类别。
Book > Red, Blue > Adventure, Detective.
如何有条件地添加“where”?
firebase
.firestore()
.collection("book")
.where("category", "==", )
.where("color", "==", )
.where("author", "==", )
.orderBy("date")
.get()
.then(querySnapshot => {...
【问题讨论】:
标签: javascript node.js firebase google-cloud-platform google-cloud-firestore