2

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: index creation screen

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"
2
  • 1
    Thanks for finding a bug in the index creation wizard. Can you report the exact steps to reproduce in a bug report? Commented Aug 9, 2018 at 17:13
  • Have done that. Btw, does the feature cover not just arrays containing plain strings too? That is, say a map like, {"user":"Jon", "role": "admin"}? Commented Aug 12, 2018 at 4:25

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.