In this case, I want to retrieve the m1
key by referring to it's child key with the value of amoxicillin
from firebase. I haven't tried to code it because i don't know where to begin.
{
"Medicines" : {
"m1" : {
"class" : "antibiotic",
"name" : "amoxcillin"
},
"m2" : {
"class" : "analgesic",
"name" : "paracetamol"