const query = new Parse.Query('Events')
query.notEqualTo('attendees', [])
const query = new Parse.Query('Events')
query.exists('attendees')
const query = new Parse.Query('Events')
const innerQuery = new Parse.Query('_User')
innerQuery.limit(1000)
query.matchesQuery('attendees', innerQuery)
1st one → crash but I understand because it is not a pointer or primitive value
2nd one → doesn’t work
3rd → the matchesQuery is always returning 0 results
I believe that the third way should work but not with a good performance. I’d probably create a trigger or cloud code function to maintain a counter of attendees in the Events class. Or use aggregate: JavaScript Developers Guide | Parse