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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -