Firestore:索引创建实用程序中涉及数组字段的错误 [英] Firestore: Bug in Index creation utility involving array fields
问题描述
正在尝试使用Firestore包含数组的功能:
Was trying out firestore array-contains feature:
我有一个具有数组字段的 projects
集合, projectUsers
I have a projects
collection having an array field, projectUsers
查询:
db.collection('projects')
.where(`deleted`, '==', false)
.orderBy('lastUpdate','desc')
.where('projectUsers', 'array-contains', '56xxxxxxxxxxxxxxxxxxxxc9')
.get()
.then(function (doc) {
....
....
})
Firestore迅速给了我指向我的索引创建链接:
Firestore promptly gave me the index creation link that directed me to this:
当我点击创建索引
按钮时,什么也没发生!控制台显示以下错误:
When I click on the Create index
button, nothing happens! Console shows the following error:
code: 400
message: "Unknown Index field mode: MODE_UNSPECIFIED"
status: "INVALID_ARGUMENT"
推荐答案
从Google收到此回复:
Got this reply from google:
感谢您提供的信息.我们已经解决了这个问题,它将在下周结束之前推出.如果在那之后您仍然遇到此问题,请告诉我们.
Thank you for the information provided. We have fixed this issue, it will be pushed by the end of next week. If you continue experiencing this issue after that, please let us know.
这篇关于Firestore:索引创建实用程序中涉及数组字段的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!