javascript - Getting pushed key value in node js firebase -


my database structure following,

child{       0{         name:true        },       1{         name2:true        }     } 

i want index number (i.e. 0,1) . know name(name,name2)

i tried following code it's returning null. and

my firebase value event listener following not working , have name of key value.

ref.push().child(name).once("value",function(snapshot){  }); 

. need . thank you.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -