This is my Firebase Structure:
All the Child Nodes are added with childByAutoId
. I want to get the record Where
Mode: "Paid"
Status: "Married"
Currently I am only able to get the list of all the nodes inside UserInfo
[[_ref child:@"UserInfo"] observeSingleEventOfType:FIRDataEventTypeValue withBlock:^(FIRDataSnapshot * _Nonnull snapshot) {
// Get user value
NSDictionary<NSString *, NSString *> *users = snapshot.value;
NSError *error;
NSLog(@"dict is %@",users);
}
withCancelBlock:^(NSError * _Nonnull error)
{
NSLog(@"%@", error.localizedDescription);
}];