With below code:
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);
}
});
I get error: {"code":102,"message":"field galleries cannot be included because it is not a pointer to another object"}
This galleries field is an array of pointers. An example from the data browser: [{"__type":"Pointer","className":"Gallery","objectId":"hXFwm8yrRT"}]
I have found numerous posts saying this should be correct - Why is it not working?