Skip to content

Instantly share code, notes, and snippets.

@deltaepsilon
Created November 2, 2016 01:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deltaepsilon/725b9415521cea10021e2cebf5617ca5 to your computer and use it in GitHub Desktop.
Save deltaepsilon/725b9415521cea10021e2cebf5617ca5 to your computer and use it in GitHub Desktop.
chatsRef.orderByValue(‘user’).equalTo(‘user1’).once(‘value’, function (snap) {
 var user1Chats = snap.val();
 console.log(‘user1 chats!’, user1Chats);
});
@amcolash
Copy link

amcolash commented Jan 5, 2018

This is great! I missed this in the docs - makes flat data much easier to work with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment