We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3138158 commit e651200Copy full SHA for e651200
database/lists-of-data.js
@@ -52,6 +52,13 @@ function socialListenValue() {
52
// [END rtdb_social_listen_value]
53
}
54
55
+function socialMostStarred() {
56
+ // [START rtdb_social_most_starred]
57
+ var myUserId = firebase.auth().currentUser.uid;
58
+ var topUserPostsRef = firebase.database().ref('user-posts/' + myUserId).orderByChild('starCount');
59
+ // [END rtdb_social_most_starred]
60
+}
61
+
62
function socialMostViewed() {
63
// [START rtdb_social_most_viewed]
64
var mostViewedPosts = firebase.database().ref('posts').orderByChild('metrics/views');
0 commit comments