parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

test: add test case for query.or and relation field

Open ricmatsui opened this issue 3 years ago • 1 comments

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)

ricmatsui avatar Feb 26 '22 23:02 ricmatsui

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

ricmatsui avatar Oct 24 '22 03:10 ricmatsui