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 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"); |