Skip to content

Instantly share code, notes, and snippets.

@travis
Created November 14, 2013 23:30
Show Gist options
  • Select an option

  • Save travis/7476315 to your computer and use it in GitHub Desktop.

Select an option

Save travis/7476315 to your computer and use it in GitHub Desktop.
var query = new Parse.Query(Post);
query.get("xWMyZ4YEGZ", {
success: function(post) {
var query = new Parse.Query(Commment);
query.equalTo("postId", "xWMyZ4YEGZ");
query.first({
success: function(object) {
// Now we can finally do something
},
error: function(error) {
// inner function error handling
}
});
},
error: function(object, error) {
// outer function error handling
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment