Skip to content

Instantly share code, notes, and snippets.

@mdobson
Created March 14, 2013 16:12
Show Gist options
  • Save mdobson/5162692 to your computer and use it in GitHub Desktop.
Save mdobson/5162692 to your computer and use it in GitHub Desktop.
Creating a connection between two entities
// Have fred "like" a dog with an entity connection
NSString *username = @"dino";
UGClientResponse *response = [usergridClient connectEntities:@"users"
connectorID:@"fred"
connectionType:@"likes"
connecteeType:@"dogs"
connecteeID:username];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment