Skip to content

Can't combine OR and AND query #116

@hunterliu1003

Description

@hunterliu1003

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]] }
    ]
  })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions