Skip to content

feat: Support $eq query for liveQuery #7606

Closed
@sadakchap

Description

@sadakchap

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions