8000 Wrong results when using $in and $nin together · Issue #936 · techfort/LokiJS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Wrong results when using $in and $nin together #936
Open
@dnish

Description

@dnish

Hey, I'm try to use the following query:

    let newDB = loki.addCollection(`test`);
    newDB.insert([{a:1},{a:2},{a:3},{a:4}]);

    const doc = newDB.chain().find({a:{$nin:[1,2],$in:[2]}}).data();
    console.log(doc);

This will give me a:3 and a:4 as output, which is not correct because a needs to 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0