Skip to content

Instantly share code, notes, and snippets.

@mdobson
Last active December 14, 2015 22:59
Show Gist options
  • Save mdobson/5162050 to your computer and use it in GitHub Desktop.
Save mdobson/5162050 to your computer and use it in GitHub Desktop.
Standard Querying in UserGrid
//Basic query examples in iOS
UGQuery * query = [[UGQuery alloc] init];
//select * wehre name = 'Fred'
[query addUrlTerm:@"name" equals:@"Fred"];
//select * where content contains 'foo'
[query addRequiredContains:@"content" value:@"foo"];
//select * where NOT a = 5
[query addRequirement:@"NOT a=5"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment