Skip to content

feat: Support $eq query for liveQuery #7606

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
3 tasks done
sadakchap opened this issue Oct 5, 2021 · 6 comments · Fixed by #8614
Closed
3 tasks done

feat: Support $eq query for liveQuery #7606

sadakchap opened this issue Oct 5, 2021 · 6 comments · Fixed by #8614
Labels
state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version type:feature New feature or improvement of existing feature

Comments

@sadakchap
Copy link
Member

New Feature / Enhancement Checklist

Current Limitation

As per this issue, currently it is not possible to combine equalTo clause with any other clauses and vice-versa. After adding support for combining equalTo clause with other clauses in Parse-SDK-JS's pr.

We need to add support equalTo for LiveQuery, so that it triggers correct events for client.

Feature / Enhancement Description

We would need to add support for $eq query in LiveQuery's matchKeyConstraints.

Example Use Case

let q = new Parse.Query('MyClass');
q.equalTo('age', null);
q.exists('age');
// if final query would be like 
// where: { age: { $eq: null, $exists: true } }
const subscribe = await q.subscribe();

Alternatives / Workarounds


3rd Party References


@parse-github-assistant
Copy link

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@cbaker6
Copy link
Contributor

cbaker6 commented Oct 5, 2021

Looks related to #7227 (comment)

In the discussion, there are ways to do equalTo in LiveQuery without $eq which are linked in the discussion.

@mtrezza mtrezza added the type:feature New feature or improvement of existing feature label Oct 5, 2021
@parse-github-assistant parse-github-assistant bot removed the type:feature New feature or improvement of existing feature label Oct 5, 2021
@mtrezza mtrezza added the type:feature New feature or improvement of existing feature label Oct 5, 2021
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.1.0-alpha.18

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Jun 8, 2023
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.3.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Jun 10, 2023
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.3.0-alpha.1

@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.3.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Sep 16, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version type:feature New feature or improvement of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants