반응형
firestoreaggregation
-
how to get rank of each user in firestore프로그래밍 2023. 4. 2. 23:33
question I use firestore to save user exam result. I would like get rank of each user by exam type and date. How could i get it? answer of chatgpt To get the rank of each user by exam type and date in Firestore, you can use a combination of queries, aggregations, and snapshot listeners. Here's an example code snippet that shows how you can do this: const db = firebase.firestore(); const collecti..