Skip to content

Instantly share code, notes, and snippets.

@KellyRice
Created September 14, 2012 15:00
Show Gist options
  • Save KellyRice/3722451 to your computer and use it in GitHub Desktop.
Save KellyRice/3722451 to your computer and use it in GitHub Desktop.
Kinvey Load Related Entities
var book = new Kinvey.Entity({}, 'books');
book.load('my-book-id', {
resolve: ['author'],
success: function(book) {
// book is the book entity instance.
// book.get('author') is the author entity instance.
},
error: function() {
// An error occurred.
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment