【发布时间】:2019-09-30 08:28:52
【问题描述】:
使用文档here 中指定的array-contains 对Firestore 集合运行复合查询:
这是我的查询:
db.collection(COLLECTION_NAME)
.where('organization.id', '==', orgId)
.where('type', '==', type)
.where('employeeIds', 'array-contains', employeeId)
.get()
这不会返回匹配项。你知道array-contains是否只能单独使用,不能与其他AND过滤器一起使用吗?
这方面几乎没有明确的文档和示例。
最好的
【问题讨论】:
标签: javascript firebase google-cloud-firestore