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
Error: firebase.firestore().collection().orderBy() Invalid query. Query.where() fieldPath parameter: 'FirestoreFieldPath' cannot be used in conjunction with a different Query.orderBy() parameter
I am getting above error on Android device even when I am using FirestoreFieldPath as first orderBy parameter. As mentioned here it should work. Below is my block of code.
const globalGroups = firestore().collection('chat/global/groups');
globalGroups
.where(firestore.FieldPath.documentId(), 'in', conversationIdArr)
.orderBy(firestore.FieldPath.documentId())
.orderBy('updatedAt') //adding this orderBy throws an error
.get()
V3RT1AG0
changed the title
'FirestoreFieldPath' cannot be used in conjunction with a different Query.orderBy() parameter error
馃敟 'FirestoreFieldPath' cannot be used in conjunction with a different Query.orderBy() parameter error
Feb 28, 2021
V3RT1AG0
changed the title
馃敟 'FirestoreFieldPath' cannot be used in conjunction with a different Query.orderBy() parameter error
[馃敟 馃悰] 'FirestoreFieldPath' cannot be used in conjunction with a different Query.orderBy() parameter error
Feb 28, 2021
I notice the reference link you post is to the nodejs implementation - we are based on the firebase-android-sdk and firebase-ios-sdk - they behave differently - are you sure this is supported in those underlying SDKs?
Issues that have very low probability of being understood due to lack of information or that have very low likelihood of causing a change in the repo since they are project related or simply unrelated to the repo are closed as fast as possible to keep the list clear for things that are demonstrated to be actual implementation issues. Closing is reversible so this is an efficient style for a high traffic repo that attracts low quality / low effort issues on a regular basis.
Why do you post ad hominem comments on old issues? Borderline abusive behavior, please keep things focused on technical items. If you or your company can demonstrate a technical issue in the repo, open an issue providing the details requested in the template and any following comments and you should get attention.
Issue
Error: firebase.firestore().collection().orderBy() Invalid query. Query.where() fieldPath parameter: 'FirestoreFieldPath' cannot be used in conjunction with a different Query.orderBy() parameter
I am getting above error on Android device even when I am using FirestoreFieldPath as first orderBy parameter. As mentioned here it should work. Below is my block of code.
Project Files
Javascript
package.json
:firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:10.8.1
Firebase
module(s) you're using that has the issue:react-native-firebase/firestore
TypeScript
?N
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: