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
Post a Comment