Skip to content

Using Query.select() will break ParseObject.has() on undefined field #475

New issue

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

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

Already on GitHub? Sign in to your account

Closed
dplewis opened this issue Aug 23, 2017 · 1 comment
Closed

Comments

@dplewis
Copy link
Member

dplewis commented Aug 23, 2017

Ref: parse-community/parse-server#3999
Caused: #409

  const obj = new Parse.Object('TestObject'); // Yay no foo
    obj.save().then(() => {
      const query = new Parse.Query('TestObject');
      query.select('foo');
      return query.get(obj.id);
    }).then((result) => {
      expect(result.has('foo')).toBe(false); // result.has('foo') returns true ?!?? :(
      done();
    }).catch(done.fail);

Up for grabs

@flovilmart
Copy link
Contributor

Closing as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants