Last active
December 14, 2015 22:59
-
-
Save mdobson/5162050 to your computer and use it in GitHub Desktop.
Standard Querying in UserGrid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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