About 70-80% of the time it works perfectly. Other times it lets users through with a different religion in this example. If I do either of those queries separately, they work 100% of the time. Once I put them together as βorβ I am getting inconsistent results.
Is this an issue with my Parse-Server version, a limitation with Back4App, or am I missing something entirely?
First of all you need to make sure you have an index created for the religion field. In addition to that, I recommend you to use in: ['some religion', null] instead of the or query. It will be way faster. Also, exists and doesNotExist do not have a good performance on mongodb. ne: null and eq: null are better alternatives. In the case, your query continues not working, please open a ticket at back4app.com. The team will be able to help you.