Skip to content

Instantly share code, notes, and snippets.

@jellea
Last active November 23, 2015 16:48
Show Gist options
  • Save jellea/8c0e1269b6025d9bf41a to your computer and use it in GitHub Desktop.
Save jellea/8c0e1269b6025d9bf41a to your computer and use it in GitHub Desktop.
(def game-score (js/Parse.Object.extend "GameScore"))
(def query (Query. js/Parse game-score))
(.get query "xWMyZ4YEGZ" #js {:success (fn [result] (prn result))
:error #(prn %2)})
var GameScore = Parse.Object.extend("GameScore");
var query = new Parse.Query(GameScore);
query.get("xWMyZ4YEGZ", {
success: function(gameScore) {
// The object was retrieved successfully.
},
error: function(object, error) {
// The object was not retrieved successfully.
// error is a Parse.Error with an error code and message.
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment