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

Add docs for $or #52

Open
chasenlehara opened this issue Jul 23, 2019 · 0 comments
Open

Add docs for $or #52

chasenlehara opened this issue Jul 23, 2019 · 0 comments

Comments

@chasenlehara
Copy link
Member

It looks like $or works great in filter: https://codepen.io/bitovi/pen/NQNWbj?editors=0012

todoQueryLogic.filterMembers({
    filter: {
        $or: [{
          id: 1
        }, {
          complete: true
        }]
    },
    sort: "-name",
    page: {start: 0, end: 19}
}, [
    {id: 1, name: "do dishes", complete: false},
    {id: 2, name: "mow lawn", complete: true},
    // ...
]);

I couldn’t find docs for $or anywhere in the can-query-logic docs.

This was asked on Slack: https://bitovi-community.slack.com/archives/CFC22NZ8A/p1560787507109300

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

1 participant