Skip to content

Instantly share code, notes, and snippets.

@mdobson
Last active December 18, 2015 15:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdobson/5807384 to your computer and use it in GitHub Desktop.
Save mdobson/5807384 to your computer and use it in GitHub Desktop.
Retrieving all books without a query.
//Getting all of your books without a filtering query.
UGClientResponse *result = [self.client getEntities:@"book" query:nil];
if (result.transactionState == kUGClientResponseSuccess) {
_objects = result.response[@"entities"];
} else {
_objects = @[];
}
@mdobson
Copy link
Author

mdobson commented Jun 19, 2013

Here is how to retrieve all the books in our data store!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment