title: how do I find a value given in firebase that is one of several attributes?
body: <p>****UPDATED****</p>
  
  <p>here is the firebase layout</p>
  
  <pre><code>"Recent" : {     
  "-KCF2_4VmCXn38fbJ07h" : {
            "counter" : 15,
            "date" : "2016-03-07T17:44:58",
            "description" : "Master",
            "groupId" : "7Z7hoKapTS",
            "lastMessage" : "AwGABL7h0ZPkXCuKvyu7PF6jcmClkdAT3AgaKkBPkBaA460cexzvpoTqfNSvn+5lILB4++AKBufHmdOIVS1giJ8EeV0V+2Dd6UlGqRvOPNQNvg==",
            "members" : [ "mf1Q6ogUHD", "mf1Q6ogUHD", "mf1Q6ogUHD", "MvKHg4Hh3L" ],
            "password" : "JHttZvN9Uw",
            "profileId" : "MvKHg4Hh3L",
            "recentId" : "-KCF2_4VmCXn38fbJ07h",
            "type" : "group",
            "userId" : "mf1Q6ogUHD"
          }
  }
  </code></pre>
  
  <p>Here is my updated query! I am now retrieving my array from firebase and putting it in an NSMutable array! Now all I need to do is delete the value of <code>members</code> (which I do not know how to do yet) and then write in the new array!</p>
  
  <pre><code>PFUser *user = [PFUser currentUser];
  NSString *nsUser = (NSString *)user;
  NSMutableArray *recentIds;
  NSMutableArray *members;
  
  Firebase *firebase = [[Firebase alloc] initWithUrl:[NSString stringWithFormat:@"%@/Recent", FIREBASE]];
  FQuery *query = [[firebase queryOrderedByChild:@"groupId"] queryEqualToValue:group.objectId];
      [query observeEventType:FEventTypeChildAdded withBlock:^(FDataSnapshot *snapshot) {
          [recentIds addObject:snapshot.value[@"recentId"]];
          [members addObjectsFromArray:snapshot.value[@"members"]];
           NSLog(@"RecentId: %@", snapshot.value[@"recentId"]);
      }];
        for(id member in members) {
              if([member isEqual:nsUser]) {
                  [members removeObject:member];
                  break;
              }
          }
  
          for(id recentId in recentIds){
              Firebase *firebase2 = [[Firebase alloc] initWithUrl:[NSString stringWithFormat: @"%@/members", recentId, @"%@/Recent/", @"https://gibber.firebaseio.com/"]];
              [firebase2 setValue: members];
          }
  for(id member in members) {
      NSLog(@"Members: %@", member);
  }
  </code></pre>
  
  <p>And then the loop at the end is to loop through the different Recent nodes that were stored in the array and place the member array as the value of the member node at that location</p>