I have a data saved like this:
users : {
'1' : {
'name':'jack',
'old':21,
'paymentCard':{
....
}
}
}
When I fetch my user like this:
ref.child('users/1').once('value', snapshot => {
console.log(snapshot.val());
});
The result contain the paymentCard.
Is there a way to restrict child returned ?