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
{{ message }}
This repository was archived by the owner on Jan 12, 2019. It is now read-only.
var ref = new Firebase("https://name.firebaseio.com/");
var norm = new Firebase.util.NormalizedCollection(
[ref.child('user/' + userId + '/chats'), 'chat'],
[ref.child('Chats').orderByChild("dateTime"), 'Chats.chatId', 'chat']
);
var ref = norm.select('chat.chatId').ref();
ref.once("value", function (snap) {
console.log('chat'+snap.val());
});
I have no error but no return Firebase .
If I exchange the two links Firebase I 'm conversation sorted in chronological order , but I have every conversation. I would just have the user logged conversations :
Controller
var ref = new Firebase("https://name.firebaseio.com/");
var norm = new Firebase.util.NormalizedCollection(
[ref.child('Chats').orderByChild("dateTime"), 'Chats'],
[ref.child('user/' + userId + '/chats'), 'chat', 'Chats.chatId']
);
var ref = norm.select('Chats.chatId').ref();
ref.once("value", function (snap) {
console.log('chat'+snap.val());
});
Hello,
I blocked for some days to retrieve data from Firebase in descending order and in relation to the connected user:
Firebase :
Controller
I have no error but no return Firebase .
If I exchange the two links Firebase I 'm conversation sorted in chronological order , but I have every conversation. I would just have the user logged conversations :
Controller
I thank you in advance