Skip to content

Instantly share code, notes, and snippets.

@Chupee
Created October 18, 2014 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chupee/c1da0e47bb877bc9e121 to your computer and use it in GitHub Desktop.
Save Chupee/c1da0e47bb877bc9e121 to your computer and use it in GitHub Desktop.
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