Closed
Description
My schema:
Match:
scheduledBy (Pointer to user)
scheduledWith (Pointer to user)
Photo:
owner (Pointer to user)
I want to find photos for users that do not have any matches.
What I tried:
let photoQuery = new Parse.Query(MODEL.Photo.className());
photoQuery.include('owner');
// Do not include people who have matches
let matchQuery = new Parse.Query(MODEL.Match.className());
photoQuery.doesNotMatchKeyInQuery('owner', 'scheduledBy', matchQuery);
photoQuery.doesNotMatchKeyInQuery('owner', 'scheduledWith', matchQuery);
// Get final results
return photoQuery.find()
This only works for the scheduledBy column.
Seems like you can't do doesNotMatchKeyInQuery with the same key and query but different query keys for some odd reason.
Can anyone confirm this? If so what would be the best alternative?
I removed scheduledBy and used scheduledWith only and that worked as well. So it's not something wrong with the data it's a bug with Parse I believe.
Metadata
Metadata
Assignees
Labels
No labels