Skip to content
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

Always has no result when using notContains with empty array #393

Open
2 tasks
jasonkit opened this issue Feb 27, 2018 · 0 comments
Open
2 tasks

Always has no result when using notContains with empty array #393

jasonkit opened this issue Feb 27, 2018 · 0 comments

Comments

@jasonkit
Copy link

Result for query using notContains on empty array will always show no result.

const Foo = new skygear.Record.extend('foo');
var query = new skygear.Query(Foo);
query.notContains('_id', []);

// Assume I do have some record for 'foo' table
skygear.publicDB.query(query).then((result) => {
  console.log(result.length);
})
  • Skygear SDK Date/Version: latest (2018-02-27)
  • JS runtime: Google Chrome 64.0.3282.186
  • Skygear Server Date/Version: latest (1.3.3?)
  • Is this a regression?
  • Attached logs, screenshots

Expected Results

non zero value is logged eventually

Actual Results

zero value is logged

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

No branches or pull requests

2 participants