Created
October 18, 2014 20:11
-
-
Save Chupee/c1da0e47bb877bc9e121 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 locationObject = Parse.Object.extend("Location"); | |
var query = new Parse.Query(locationObject); | |
query.include("photos"); | |
query.find({ | |
success: function(savedLocations) { | |
// Comments now contains the last ten comments, and the "post" field | |
// has been populated. For example: | |
for (var i = 0; i < savedLocations.length; i++) { | |
// This does not require a network access. | |
var photos = savedLocations[i].get("photos"); | |
console.log(photos); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment