Is it possible to automatically aggregate data in Firebase

后端 未结 1 1961
挽巷
挽巷 2020-12-07 02:33

I have a collection where every element has its own counter (a numeric value). Is it possible for Firebase to automatically aggregate (reduce) this data into a single value?

相关标签:
1条回答
  • 2020-12-07 03:11

    Server-side (ie. "firebase-side") the answer is no.
    if your app is simpler/not-secured, you'd do that client side.. but I guess it's not the case.
    Assuming your app's data is fragmented and secured, you'd normally do this calculation on your server (which is itself, a firebase-client), and push this piece of data back to firebase.

    0 讨论(0)
提交回复
热议问题