I\'m struggling to make a (not so) complex query in firebase cloud firestore.
I simply need to get all docs where
the id
field ==
I ran into the same issue yesterday on Android. The Callback was just not called. Today I suddenly got an error message. FAILED_PRECONDITION: The query requires an index.
It even contains a URL in the error message to generate that index with one click.
It seems that if you want to use orderBy
on your data, you need to create an index for that field. The index also needs to be in the correct order (DESC, ASC).