Skip to content

feat: Support $eq query for liveQuery #7606

Closed
@sadakchap

Description

@sadakchap
Member

New Feature / Enhancement Checklist

  • I am not disclosing a vulnerability.
    I am not just asking a question.
    I have searched through existing issues.

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


Activity

parse-github-assistant

parse-github-assistant commented on Oct 5, 2021

@parse-github-assistant

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!
cbaker6

cbaker6 commented on Oct 5, 2021

@cbaker6
Contributor

Looks related to #7227 (comment)

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

added
type:featureNew feature or improvement of existing feature
on Oct 5, 2021
added
type:featureNew feature or improvement of existing feature
on Oct 5, 2021
parseplatformorg

parseplatformorg commented on Jun 8, 2023

@parseplatformorg
Contributor

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

parseplatformorg

parseplatformorg commented on Jun 10, 2023

@parseplatformorg
Contributor

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

parseplatformorg

parseplatformorg commented on Jun 18, 2023

@parseplatformorg
Contributor

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

parseplatformorg

parseplatformorg commented on Sep 16, 2023

@parseplatformorg
Contributor

🎉 This change has been released in version 6.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @mtrezza@cbaker6@sadakchap@parseplatformorg

      Issue actions

        feat: Support $eq query for liveQuery · Issue #7606 · parse-community/parse-server