2

I need to get some Custom Objects but I need to check if two fields contain the value I pass.

NSMutableDictionary *parameters = [[NSMutableDictionary alloc] init];
[parameters setValue:@"188888" forKey:@"user_id"];
[parameters setValue:@"188888" forKey:@"sent_to"];

[QBCustomObjects objectsWithClassName:@"Messages" extendedRequest:parameters delegate:self];

What I need is to check if the first parameter OR the second parameter are satisfied. With the code above I get a response as if a query was build like "user_id = 188888 AND sent_to = 188888".

Thanks in advance!

4

1 回答 1

2

自定义对象 API 尚不支持运算符 OR。

我建议您进行 2 个单独的查询,然后在客户端应用程序中合并 2 个结果

于 2013-05-29T08:48:23.307 回答