BUG: getAggregateFromServer
does not consider any where
clauses attached to its query
#8253
Open
1 of 9 tasks
Labels
Issue
As requested by @mikehardy I created this issue that originated from this comment on PR #8115.
While trying (unsuccessfully) to use the new
sum
aggregated query, I found out that thegetAggregateFromServer
function does not considerwhere
clauses attached to it, at least when used with collection groups. Here is a MRE.This issue is particularly worrisome as it completely disallows the usage of the new
sum
andaverage
functions, as they don't yet have support for method chaining thatcount
does, so using them throughgetAggregateFromServer
is the only way to use them!Using RNFB 21.7.1.
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:iOS
Click To Expand
ios/Podfile
: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-firebase
version you're using that has this issue:21.7.1
Firebase
module(s) you're using that has the issue:firestore
TypeScript
?Yes ~5.3.3
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: