Advertisement
Guest User

Untitled

a guest
Oct 26th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. var Photo = Parse.Object.extend("Photo");
  2.  
  3. var query = new Parse.Query(Photo);
  4. query.equalTo("owner", Parse.User.current());
  5. query.limit(1000);
  6. query.descending("takenAt");
  7. query.include("galleries");
  8.  
  9. query.find({
  10. success: function(results) {
  11. // results has the list of users with a hometown team with a winning record
  12. console.log(results);
  13. res.render("photos", { photos : results,user:Parse.User.current(),nav:req.originalUrl });
  14. },
  15. error: function(error) {
  16. console.log(error);
  17. }
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement