Start a new topic

Query a collection field that is an array, where the array contains a value

I have tried various conditionals but have had no luck.



Basically I have a Collection called Groups and it has a field called members. Where members is an array of user ids. I want to query Groups where members contains a specific user id. Is this possible using the ios sdk?

I would think this would work, but it appears that this checks if the field-value is in the passed in value



KCSQuery* query = [KCSQuery queryOnField:@"members" usingConditional:kKCSIn forValue:@[@"id_value"]];
Ignore This. There was an error on my part. This works as expected.
Login or Signup to post a comment