Last active
November 23, 2015 16:48
-
-
Save jellea/8c0e1269b6025d9bf41a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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