I'm learning about reactJS and for the database I'm using firebase realtime Database.. everything works. but there is one problem..
i have Firebase url like this
https://my-app-name-rtdb.asia-southeast1.firebasedatabase.app/data.json
and the result when get the data
{
"data" : {
"-Mc8l24sBroFw8JoA32e" : {
"data" : {
"authorized" : {...},
"authorizedFinance" : {...},
"authorizedTechnical" : {...},
"billingAddress" : {...},
"information" : {...},
"serviceOrder" : {...},
"subscriptionFee" : {...},
"typeofOrder" : {...}
}
},
"-Mc9XCIdCg4FLDzj3Xmg" : {
"data" : {
"authorized" : {...},
"authorizedFinance" : {...},
"authorizedTechnical" : {...},
"billingAddress" : {...},
"information" : {...},
"serviceOrder" : {...},
"subscriptionFee" : {...},
"typeofOrder" : {...}
}
}
}
}
what i want is,just get 1 data by the id -Mc8l24sBroFw8JoA32e.
{
"data" : {
"-Mc8l24sBroFw8JoA32e" : {
"data" : {
"authorized" : {...},
"authorizedFinance" : {...},
"authorizedTechnical" : {...},
"billingAddress" : {...},
"information" : {...},
"serviceOrder" : {...},
"subscriptionFee" : {...},
"typeofOrder" : {...}
}
}
}
i have tried to pass params in the url like this
https://my-app-name-rtdb.asia-southeast1.firebasedatabase.app/data.json?id=-Mc8l24sBroFw8JoA32e
but is not working. i get the all data..
so, how to do it? is it possible?


