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

FR: Multiple conditions on comparison #6

Open
itsezc opened this issue Jan 29, 2023 · 0 comments
Open

FR: Multiple conditions on comparison #6

itsezc opened this issue Jan 29, 2023 · 0 comments
Assignees

Comments

@itsezc
Copy link
Owner

itsezc commented Jan 29, 2023

Currently it isn't possible to have:

Account.select()
   .where({
      location: {
         inside: {
            type: 'Point',
            coordinates: [21, 21]
         },
         outside: {
            type: 'Point',
            coordinates: [22, 22]
         }
      }
})
.build()
Account.select()
   .where({
      username: {
         endsWith: 'ends',
         startsWith: 'starts'
      }
   })
.build()

As only one comparison generates a valid query.

@itsezc itsezc self-assigned this Jan 31, 2023
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

No branches or pull requests

1 participant