Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Photo = Parse.Object.extend("Photo");
- var query = new Parse.Query(Photo);
- query.equalTo("owner", Parse.User.current());
- query.limit(1000);
- query.descending("takenAt");
- query.include("galleries");
- query.find({
- success: function(results) {
- // results has the list of users with a hometown team with a winning record
- console.log(results);
- res.render("photos", { photos : results,user:Parse.User.current(),nav:req.originalUrl });
- },
- error: function(error) {
- console.log(error);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement