You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were tring to accomplish a composite query that would fetch documents by Id or other property. The problem is whenever we try to use the documentId() method, the app throws an error saying we can't use that query because we need to create an index.
then when we follow the link to create the query we face a firebase error:
so we can't really query by id or another document field.
Because changing it to this works no problem and doesn't request you to create an index
Any updates on this? I just ran into the same problem trying to combine a 'in' query on documentId with another field query via OR in firebase-admin 12.5.0...
Operating System
windows 11
Browser Version
Windows 11 Pro 23H2 22631.3155
Firebase SDK Version
9.21.0
Firebase SDK Product:
Firestore
Describe your project's tooling
We are using firebase alongside expo to create an all platform app.
"@react-native-firebase/analytics": "^18.2.0",
"@react-native-firebase/app": "^18.2.0",
"@react-native-firebase/app-check": "^18.2.0",
"@react-native-firebase/auth": "^18.2.0",
"firebase": "^9.21.0",
Describe the problem
We were tring to accomplish a composite query that would fetch documents by Id or other property. The problem is whenever we try to use the documentId() method, the app throws an error saying we can't use that query because we need to create an index.
then when we follow the link to create the query we face a firebase error:
so we can't really query by id or another document field.
Because changing it to this works no problem and doesn't request you to create an index
Steps and code to reproduce issue
minimal reproducible code:
The text was updated successfully, but these errors were encountered: