Skip to content

Instantly share code, notes, and snippets.

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