As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I have a table with a field called "names", which is an array. I would like to use NSPredicate to find all entities which have a certain value within that array. For example, I may want to find all entities which have "Bob" in names. I have tried
NSPredicate *pred = [NSPredicatepredicateWithFormat:@"(%K IN names)", @"Bob"];
I get the error: "Can't canonicalize query: BadValue $in needs an array"
Is there a way to do this? I am using iOS SDK 3.3.6.
Michael Lee
I have a table with a field called "names", which is an array. I would like to use NSPredicate to find all entities which have a certain value within that array. For example, I may want to find all entities which have "Bob" in names. I have tried
NSPredicate *pred = [NSPredicate predicateWithFormat:@"(%K IN names)", @"Bob"];
I get the error: "Can't canonicalize query: BadValue $in needs an array"
Is there a way to do this? I am using iOS SDK 3.3.6.
See if this Swift 3 code helps:
let query = Query(format: "names IN %@", “Bob")
let _ = dataStore.find(query) { metaData, error in
print("metaData: \(metaData)")
}
This has worked for me.
Thanks,
Pranav
Kinvey
Pranav J
See if this Swift 3 code helps:
let query = Query(format: "names IN %@", “Bob")
let _ = dataStore.find(query) { metaData, error in
print("metaData: \(metaData)")
}
This has worked for me.
Thanks,
Pranav
Kinvey
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics