Help please, I use Firebase, I need new entries to appear at the top of the list, how to create a request
1 answer
You need to use when receiving data "child_added"
it listens to who was added while you can add. .limit(5)
I hope the names of the word speak for themselves. All this will bring out the last 5 entries. and you can also use equalTo () child values to be equal to what will be specified
ref.orderByChild("name").equalTo("david").limit(5).on("child_added", function(snapshot)
you can use a number in your case
ref.orderByChild("date").equalTo("12/8/2016").limit(5).on("child_added", function(snapshot)
|