Image of database
So that's my database, and I wanna collect all alamat
from all record i have, diki
and rizky
Here is my code
var optList = {"method" : "get"};
var recordName = "diki";
var rsltList = UrlFetchApp.fetch("https://martabak-bot.firebaseio.com/" + recordName + "/.json", optList );
var importdb = JSON.parse(rsltList);
var posting= (importdb.alamat);
So far I can collect Diki's alamat
and put it on posting
variable.
So if I wanna collect all alamat
, what should I do?
Based on this question : How to get all child's data in firebase database?
Is this datasnapshot
works for me too?
But I don't see it finished with stored to a variable.
Thanks for the help and answer, I really a beginner in JS. Thank you.