parse-server
parse-server copied to clipboard
test: add test case for query.or and relation field
New Pull Request Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am creating this PR in reference to an issue.
Issue Description
Related issue: https://github.com/parse-community/parse-server/issues/7828
Adding relation constraints to a compound query for example: Query.or(...).equalTo('relationField', ...) does not work and no results are returned. This is because reduceInRelation only reduces the relations in the child queries and not the parent query.
Approach
Adding a similar test as the existing or queries on pointer and relation fields test
TODOs before merging
- [x] Add tests
- [x] A changelog entry is created automatically using the pull request title (do not manually add a changelog entry)
Thanks for opening this pull request!
- 🎉 We are excited about your hands-on contribution!
Superseded by https://github.com/parse-community/parse-server/pull/8203