正在尝试 firestore array-contains 功能:
我有一个projects
具有数组字段的集合,projectUsers
Query:
db.collection('projects')
.where(`deleted`, '==', false)
.orderBy('lastUpdate','desc')
.where('projectUsers', 'array-contains', '56xxxxxxxxxxxxxxxxxxxxc9')
.get()
.then(function (doc) {
....
....
})
Firestore promptly gave me the index creation link that directed me to this:
当我点击Create index
按钮,什么也没有发生!控制台显示以下错误:
code: 400
message: "Unknown Index field mode: MODE_UNSPECIFIED"
status: "INVALID_ARGUMENT"
得到谷歌的回复:
感谢您提供的信息。我们已经修复了这个问题,将在下周末之前推送。如果此后您仍然遇到此问题,请告诉我们。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)