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

Can't combine OR and AND query #116

Open
hunterliu1003 opened this issue Sep 4, 2023 · 0 comments · May be fixed by #117
Open

Can't combine OR and AND query #116

hunterliu1003 opened this issue Sep 4, 2023 · 0 comments · May be fixed by #117

Comments

@hunterliu1003
Copy link
Contributor

https://magnetar.cycraft.co/docs-main/read-data/#query

The following syntax is not working properly:

magnetar
  .collection('pokedex')
  .query({
    or: [
      { and: [['type', '==', 'fire'], ['level', '>', 16]] },
      { and: [['type', '==', 'water'], ['level', '<', 16]] }
    ]
  })
hunterliu1003 added a commit to hunterliu1003/magnetar that referenced this issue Sep 4, 2023
@hunterliu1003 hunterliu1003 linked a pull request Sep 4, 2023 that will close this issue
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.

1 participant