How to get all posts (Post) that have images (Relation) in android Parse
My code
// get their postsList
ParseQuery<Post> query = new ParseQuery<Post>(Post.class);
query.orderByDescending("views");
query.whereExists("images"); // only post with images attached to
query.include("User.profileImage.image");
query.whereEqualTo("isPublic", true);
posts = query.find();
I need to exclude any post that has zero images.
in another words, how to get posts whose images column is Relation with a size of 1 or more