我需要使用多个 where 子句运行查询,但我的查询忽略它们。我在网上查找过,找不到适合我需要的示例。 这是我当前正在使用的代码。我们始终感谢任何和所有帮助。
let codeRef = db.collection('codes')
codeRef.where('code', '==', this.code)
codeRef.where('gid', '==', this.gid)
codeRef.get().then(snapshot => { ...
最佳答案
你尝试过将它们结合起来吗?
let codeRef = db.collection('codes')
.where('code','==',this.code)
.where('gid','==',this.gid)
.get()
关于javascript - Firestore 和 Vue.js 多个Where子句,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54858884/