Was trying out firestore array-contains feature:
I have a projects collection having an array field, 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:

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"
{"user":"Jon", "role": "admin"}?