Skip to content

Can not combine equalTo clause with any other clause #1372

Open
@sadakchap

Description

@sadakchap

New Issue Checklist

Issue Description

Combining equalTo clause with any other clause seem to overwriting each other.

Steps to reproduce

let q = new Parse.Query('MyClass');
q.equalTo('age', null);
q.exists('age');
// or these
q.equalTo('age', 10);
q.greaterThan('age', 0);

Actual Outcome

getting a query like this where={age: {$exists: true}} or error in 2nd case(using greaterThan)

Expected Outcome

where={age: {$exists: true, $eq: null }} or where={age: {$gt: 0, $eq: 10 }}

Environment

Server

  • Parse Server version: 4.5.0
  • Operating system: Ubuntu
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 4.4
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local

Client

  • Parse JS SDK version: 3.2.0

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$5Bounty applies for fixing this issue (Parse Bounty Program)type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions