如何使用带有Objective-C的where子句在firebase中查询?

时间:2017-02-19 11:21:34

标签: ios objective-c firebase firebase-realtime-database

这是我的Firebase结构:

enter image description here

所有子节点都添加了childByAutoId。我想要记录哪里

Mode: "Paid"
Status: "Married"

目前我只能获取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);
 }];

0 个答案:

没有答案