我在使用Firebase查询时遇到了一些麻烦.我想查询对象,其中对象子值包含某个字符串.到目前为止,我有一些看起来像这样的东西:
Firebase *ref = [[Firebase alloc] initWithUrl:@"https://dinosaur-facts.firebaseio.com/dinosaurs"];
[[[[ref queryOrderedByKey] queryStartingAtValue:@"b"] queryEndingAtValue:@"b~"]
observeEventType:FEventTypeChildAdded withBlock:^(FDataSnapshot *snapshot) {
NSLog(@"%@", snapshot.key);
}];
Run Code Online (Sandbox Code Playgroud)
但是这只会给出起始值为"b"的对象.我想要包含字符串"b"的对象.我怎么做?